efraim pushed a commit to branch rust-team
in repository guix.
commit b39f45fb754fbc8ce67855e97b11ee0753491a8e
Author: Efraim Flashner <[email protected]>
AuthorDate: Thu Dec 19 15:34:43 2024 +0200
gnu: rust-zerocopy-0.6: Update to 0.6.6.
* gnu/packages/crates-io.scm (rust-zerocopy-0.6): Update to 0.6.6.
[source]: Add snippet to allow for newer versions of dependencies.
[arguments]: Don't skip the build. Skip the tests.
[cargo-inputs]: Replace rust-zerocopy-derive-0.3 with 0.6.
[cargo-development-inputs]: Add rust-rand-0.6, rust-rustversion-1,
rust-static-assertions-1, rust-trybuild-1.
Change-Id: I2e9995a7b57d82621bdd5fb53cce4a76ac4d413a
---
gnu/packages/crates-io.scm | 18 ++++++++++++++----
1 file changed, 14 insertions(+), 4 deletions(-)
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 5a6cf6a7e8..afbed048fb 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -98963,19 +98963,29 @@ for locating fonts.")
(package
(inherit rust-zerocopy-0.7)
(name "rust-zerocopy")
- (version "0.6.1")
+ (version "0.6.6")
(source (origin
(method url-fetch)
(uri (crate-uri "zerocopy" version))
(file-name (string-append name "-" version ".tar.gz"))
(sha256
(base32
- "0dpj4nd9v56wy93ahjkp95znjzj91waqvidqch8gxwdwq661hbrk"))))
+ "1rpq5g7sp763w2f7bjrc6wi08wxcfjva2rjcl7lrwq9dr2d98kl5"))
+ (modules '((guix build utils)))
+ (snippet
+ '(begin (substitute* "Cargo.toml"
+ (("\"= ?([[:digit:]]+(\\.[[:digit:]]+)*)" _ version)
+ (string-append "\"^" version)))))))
(arguments
- `(#:skip-build? #t
+ `(#:tests? #f ; Tests depend on exact versions of rust.
#:cargo-inputs
(("rust-byteorder" ,rust-byteorder-1)
- ("rust-zerocopy-derive" ,rust-zerocopy-derive-0.3))))))
+ ("rust-zerocopy-derive" ,rust-zerocopy-derive-0.6))
+ #:cargo-development-inputs
+ (("rust-rand" ,rust-rand-0.6)
+ ("rust-rustversion" ,rust-rustversion-1)
+ ("rust-static-assertions" ,rust-static-assertions-1)
+ ("rust-trybuild" ,rust-trybuild-1))))))
(define-public rust-zerocopy-0.3
(package