Subject: [bug#76872] [PATCH rust-team v3 08/10] gnu: rust-criterion-0.4: Address 2024 Cargo deprecation/rename warning.

From: Aaron Covrig <[email-masked]>
Date: Wed, 19 Mar 2025 19:41:35 -0400

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

diff --git a/gnu/packages/crates-check.scm b/gnu/packages/crates-check.scm
index 3d02f5421b..b652305a91 100644
--- a/gnu/packages/crates-check.scm
+++ b/gnu/packages/crates-check.scm
@@ -104,7 +104,12 @@ (define-public rust-criterion-0.4
               (file-name (string-append name "-" version ".tar.gz"))
               (sha256
                (base32
-                "1jsl4r0yc3fpkyjbi8aa1jrm69apqq9rxwnjnd9brqmaq44nxiz7"))))
+                "1jsl4r0yc3fpkyjbi8aa1jrm69apqq9rxwnjnd9brqmaq44nxiz7"))
+            (modules '((guix build utils)))
+            (snippet
+              '(begin (substitute* "Cargo.toml"
+                  ;; Address 2024 deprecation/rename warning
+                  (("default_features") "default-features"))))))
     (arguments
      `(#:cargo-inputs
        (("rust-anes" ,rust-anes-0.1)
-- 
2.48.1