[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/02: gnu: rust-hashbrown-0.12: Patch Cargo.toml.
From: |
guix-commits |
Subject: |
01/02: gnu: rust-hashbrown-0.12: Patch Cargo.toml. |
Date: |
Tue, 30 Aug 2022 12:35:10 -0400 (EDT) |
rekado pushed a commit to branch rekados-rust-queue
in repository guix.
commit ead5379b392662111f488e7f4a13e3210a859f90
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 da8bffd5a9..9dee726935 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -26791,7 +26791,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