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

Message ID 20250308171035.2399793-9-aaron.covrig.us@ieee.org
State New
Headers
Series More fixes |

Commit Message

Aaron Covrig March 8, 2025, 5:10 p.m. UTC
  * 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(-)
  

Patch

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)