guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

38/64: gnu: rust-hashbrown-0.12: Patch Cargo.toml.


From: guix-commits
Subject: 38/64: gnu: rust-hashbrown-0.12: Patch Cargo.toml.
Date: Sun, 4 Sep 2022 18:17:32 -0400 (EDT)

rekado pushed a commit to branch master
in repository guix.

commit 7c4546d591cac73a34cee5a519222904315731a9
Author: Ricardo Wurmus <rekado@elephly.net>
AuthorDate: Tue Aug 30 18:20:44 2022 +0200

    gnu: rust-hashbrown-0.12: Patch Cargo.toml.
    
    This is a follow-up to commit d7a4ab2cd50d5398d90117d6afcfccca5a158b9b.
    
    * gnu/packages/crates-io.scm (rust-hashbrown-0.12)[source]: Add snippet to
    require the "edition2021" cargo feature to avoid a failure to parse the 
file.
---
 gnu/packages/crates-io.scm | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 8785d6a7d3..a4c8bc5104 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -26792,7 +26792,14 @@ already-hashed or hash-like data.")
               (file-name (string-append name "-" version ".tar.gz"))
               (sha256
                (base32
-                "1268ka4750pyg2pbgsr43f0289l5zah4arir2k4igx5a8c6fg7la"))))
+                "1268ka4750pyg2pbgsr43f0289l5zah4arir2k4igx5a8c6fg7la"))
+              (modules '((guix build utils)))
+              (snippet
+               ;; Without this line users of hashbrown would be unable to
+               ;; parse the contents of the Cargo.toml.
+               '(substitute* "Cargo.toml"
+                  (("\\[package\\]" m)
+                   (string-append "cargo-features = [\"edition2021\"]\n" 
m))))))
     (build-system cargo-build-system)
     (arguments
      `(#:cargo-inputs



reply via email to

[Prev in Thread] Current Thread [Next in Thread]