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
This commit is contained in:
Efraim Flashner 2023-12-24 09:45:19 +02:00
parent f5544441fe
commit ffb2261573
No known key found for this signature in database
GPG key ID: 41AAE7DCCA3D8351

View file

@ -92960,8 +92960,38 @@ (define-public rust-zbus-polkit-1
(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 @@ (define-public rust-zerocopy-0.6
(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