From ffb226157305e4fe03a790ff5b10af5bb8cffb8c Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Sun, 24 Dec 2023 09:45:19 +0200 Subject: [PATCH] gnu: Add rust-zerocopy-0.7. * gnu/packages/crates-io.scm (rust-zerocopy-0.7): New variable. (rust-zerocopy-0.6): Inherit from rust-zerocopy-0.7. Change-Id: I8de7dbbe3f00f6046add99b22433080b9ef7fa8d --- gnu/packages/crates-io.scm | 37 +++++++++++++++++++++++++++++++------ 1 file changed, 31 insertions(+), 6 deletions(-) diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index 3a1541e244..2a6cacaaf5 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -92960,8 +92960,38 @@ for locating fonts.") (description "@code{PolicyKit} binding.") (license license:expat))) +(define-public rust-zerocopy-0.7 + (package + (name "rust-zerocopy") + (version "0.7.32") + (source + (origin + (method url-fetch) + (uri (crate-uri "zerocopy" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "1ghnfxw69kx5d1aqfd5fsfrra9dgpz17yqx84nd4ryjk3sbd7m3l")))) + (build-system cargo-build-system) + (arguments + `(#:tests? #f ; use of undeclared crate or module `testutil` + #:cargo-inputs (("rust-byteorder" ,rust-byteorder-1) + ("rust-zerocopy-derive" ,rust-zerocopy-derive-0.7)) + #:cargo-development-inputs (("rust-assert-matches" ,rust-assert-matches-1) + ("rust-elain" ,rust-elain-0.3) + ("rust-itertools" ,rust-itertools-0.11) + ("rust-rand" ,rust-rand-0.8) + ("rust-rustversion" ,rust-rustversion-1) + ("rust-static-assertions" ,rust-static-assertions-1) + ("rust-trybuild" ,rust-trybuild-1) + ("rust-zerocopy-derive" ,rust-zerocopy-derive-0.7)))) + (home-page "https://github.com/google/zerocopy") + (synopsis "Utilities for zero-copy parsing and serialization") + (description "Utilities for zero-copy parsing and serialization.") + (license (list license:bsd-2 license:asl2.0 license:expat)))) + (define-public rust-zerocopy-0.6 (package + (inherit rust-zerocopy-0.7) (name "rust-zerocopy") (version "0.6.1") (source (origin @@ -92971,16 +93001,11 @@ for locating fonts.") (sha256 (base32 "0dpj4nd9v56wy93ahjkp95znjzj91waqvidqch8gxwdwq661hbrk")))) - (build-system cargo-build-system) (arguments `(#:skip-build? #t #:cargo-inputs (("rust-byteorder" ,rust-byteorder-1) - ("rust-zerocopy-derive" ,rust-zerocopy-derive-0.3)))) - (home-page "https://github.com/google/zerocopy") - (synopsis "Utilities for zero-copy parsing and serialization") - (description "Utilities for zero-copy parsing and serialization") - (license license:bsd-2))) + ("rust-zerocopy-derive" ,rust-zerocopy-derive-0.3)))))) (define-public rust-zerocopy-0.3 (package