Subject: [bug#76872] [PATCH rust-team 9/9] gnu: rust-futures-0.3: Address 2024 Cargo deprecation/rename warning

From: Aaron Covrig <[email-masked]>
Date: Sat, 8 Mar 2025 11:50:54 -0500

* gnu/packages/crates-io.scm (rust-futures-0.3): Address 2024 Cargo
  deprecation/rename warning for `default_features`
---
 gnu/packages/crates-io.scm | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index b7f80c3560..26f4abf7b9 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -28440,7 +28440,12 @@ (define-public rust-futures-0.3
        (file-name (string-append name "-" version ".tar.gz"))
        (sha256
         (base32
-         "0xh8ddbkm9jy8kc5gbvjp9a4b6rqqxvc8471yb2qaz5wm2qhgg35"))))
+         "0xh8ddbkm9jy8kc5gbvjp9a4b6rqqxvc8471yb2qaz5wm2qhgg35"))
+       (modules '((guix build utils)))
+       (snippet
+        '(begin (substitute* "Cargo.toml"
+                  ;; Address 2024 deprecation/rename warning
+                  (("default_features") "default-features"))))))
     (build-system cargo-build-system)
     (arguments
      `(#:tests? #f      ; use of undeclared crate or module `futures_test`
-- 
2.48.1