@@ -91481,8 +91481,40 @@ (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.31")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "zerocopy" version))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32 "0gcfyrmlrhmsz16qxjp2qzr6vixyaw1p04zl28f08lxkvfz62h0w"))))
+ (build-system cargo-build-system)
+ (arguments
+ `(#:tests? #f
+ #: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
@@ -91492,16 +91524,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