gnu: rust-zerocopy: Add 0.6.1.

* gnu/packages/crates-io.scm (rust-zerocopy-0.6): New variable.
(rust-zerocopy-0.3): Inherit from it.
This commit is contained in:
Marius Bakke 2022-12-01 20:05:05 +01:00
parent d65afc9f5a
commit 83350bf56b
No known key found for this signature in database
GPG key ID: A2A06DF2A33A54FA

View file

@ -68108,8 +68108,31 @@ (define-public rust-zbase32-0.1
(description "This package provides an implementation of zbase32.")
(license license:lgpl3+)))
(define-public rust-zerocopy-0.6
(package
(name "rust-zerocopy")
(version "0.6.1")
(source (origin
(method url-fetch)
(uri (crate-uri "zerocopy" version))
(file-name (string-append name "-" version ".tar.gz"))
(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)))
(define-public rust-zerocopy-0.3
(package
(inherit rust-zerocopy-0.6)
(name "rust-zerocopy")
(version "0.3.1")
(source
@ -68119,17 +68142,11 @@ (define-public rust-zerocopy-0.3
(file-name (string-append name "-" version ".tar.gz"))
(sha256
(base32 "00nbb6yal8f74bkpn7msjcnhisimw8s5777a63206rfnn3br45zh"))))
(build-system cargo-build-system)
(arguments
`(#:skip-build? #t
#:cargo-inputs
(("rust-byteorder" ,rust-byteorder-1)
("rust-zerocopy-derive" ,rust-zerocopy-derive-0.2))))
(home-page "https://fuchsia.googlesource.com/fuchsia/+/HEAD/src/lib/zerocopy")
(synopsis "Utilities for zero-copy parsing and serialization")
(description
"This package provides utilities for zero-copy parsing and
serialization.")
(license license:bsd-3)))
(define-public rust-zerocopy-derive-0.3