gnu: Add rust-rand-0.8.
* gnu/packages/crates-io.scm (rust-rand-0.8): New variable. (rust-rand-0.7): Inherit from above.
This commit is contained in:
parent
aab1c03ecf
commit
5e85434c50
@ -26260,8 +26260,38 @@ that must be shared-mutable, but merely may use atomic instructions to do so.")
|
|||||||
radix.")
|
radix.")
|
||||||
(license license:asl2.0)))
|
(license license:asl2.0)))
|
||||||
|
|
||||||
|
(define-public rust-rand-0.8
|
||||||
|
(package
|
||||||
|
(name "rust-rand")
|
||||||
|
(version "0.8.2")
|
||||||
|
(source
|
||||||
|
(origin
|
||||||
|
(method url-fetch)
|
||||||
|
(uri (crate-uri "rand" version))
|
||||||
|
(file-name (string-append name "-" version ".tar.gz"))
|
||||||
|
(sha256
|
||||||
|
(base32 "07lb17qj02bi17mhqxlmsiyf4g8cmplm6hbiw5hxc900li19nl8q"))))
|
||||||
|
(build-system cargo-build-system)
|
||||||
|
(arguments
|
||||||
|
`(#:skip-build? #t
|
||||||
|
#:cargo-inputs
|
||||||
|
(("rust-libc" ,rust-libc-0.2)
|
||||||
|
("rust-log" ,rust-log-0.4)
|
||||||
|
("rust-packed-simd-2" ,rust-packed-simd-2-0.3)
|
||||||
|
("rust-rand-chacha" ,rust-rand-chacha-0.3)
|
||||||
|
("rust-rand-core" ,rust-rand-core-0.6)
|
||||||
|
("rust-rand-hc" ,rust-rand-hc-0.3)
|
||||||
|
("rust-serde" ,rust-serde-1))))
|
||||||
|
(home-page "https://crates.io/crates/rand")
|
||||||
|
(synopsis "Random number generators and other randomness functionality")
|
||||||
|
(description
|
||||||
|
"Rand provides utilities to generate random numbers, to convert them to
|
||||||
|
useful types and distributions, and some randomness-related algorithms.")
|
||||||
|
(license (list license:expat license:asl2.0))))
|
||||||
|
|
||||||
(define-public rust-rand-0.7
|
(define-public rust-rand-0.7
|
||||||
(package
|
(package
|
||||||
|
(inherit rust-rand-0.8)
|
||||||
(name "rust-rand")
|
(name "rust-rand")
|
||||||
(version "0.7.3")
|
(version "0.7.3")
|
||||||
(source
|
(source
|
||||||
@ -26272,7 +26302,6 @@ radix.")
|
|||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32
|
||||||
"00sdaimkbz491qgi6qxkv582yivl32m2jd401kzbn94vsiwicsva"))))
|
"00sdaimkbz491qgi6qxkv582yivl32m2jd401kzbn94vsiwicsva"))))
|
||||||
(build-system cargo-build-system)
|
|
||||||
(arguments
|
(arguments
|
||||||
`(#:cargo-inputs
|
`(#:cargo-inputs
|
||||||
(("rust-getrandom" ,rust-getrandom-0.1)
|
(("rust-getrandom" ,rust-getrandom-0.1)
|
||||||
@ -26285,14 +26314,7 @@ radix.")
|
|||||||
("rust-rand-pcg" ,rust-rand-pcg-0.2))
|
("rust-rand-pcg" ,rust-rand-pcg-0.2))
|
||||||
#:cargo-development-inputs
|
#:cargo-development-inputs
|
||||||
(("rust-rand-hc" ,rust-rand-hc-0.2)
|
(("rust-rand-hc" ,rust-rand-hc-0.2)
|
||||||
("rust-rand-pcg" ,rust-rand-pcg-0.2))))
|
("rust-rand-pcg" ,rust-rand-pcg-0.2))))))
|
||||||
(home-page "https://crates.io/crates/rand")
|
|
||||||
(synopsis "Random number generators and other randomness functionality")
|
|
||||||
(description
|
|
||||||
"Rand provides utilities to generate random numbers, to convert them to
|
|
||||||
useful types and distributions, and some randomness-related algorithms.")
|
|
||||||
(license (list license:asl2.0
|
|
||||||
license:expat))))
|
|
||||||
|
|
||||||
(define-public rust-rand-0.6
|
(define-public rust-rand-0.6
|
||||||
(package
|
(package
|
||||||
|
Loading…
Reference in New Issue
Block a user