From 8849b7c582f84c7b0d81c4adfee1a08134b7817d Mon Sep 17 00:00:00 2001 From: Nicolas Goaziou Date: Sun, 20 Dec 2020 15:57:34 +0100 Subject: gnu: Add rust-nanorand-0.5. * gnu/packages/crates-io.scm (rust-nanorand-0.5): New variable. --- gnu/packages/crates-io.scm | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) (limited to 'gnu/packages') diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index e542a77248..b74555934f 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -18054,6 +18054,36 @@ a default trait implementation you've defined.") libmysqlclient.") (license (list license:expat license:asl2.0)))) +(define-public rust-nanorand-0.5 + (package + (name "rust-nanorand") + (version "0.5.1") + (source + (origin + (method url-fetch) + (uri (crate-uri "nanorand" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "1ryi6jdfsfij4di33f269099g7m32rlr7sv7j4pklnjcj2xxfwri")))) + (build-system cargo-build-system) + (arguments + `(#:skip-build? #true ;error with pre-release randomize + #:cargo-inputs + (("rust-getrandom" ,rust-getrandom-0.2) + ("rust-zeroize" ,rust-zeroize-1)) + #:cargo-development-inputs + (("rust-criterion" ,rust-criterion-0.3) + ("rust-fastrand" ,rust-fastrand-1) + ("rust-hex" ,rust-hex-0.4) + ("rust-random-fast-rng" ,rust-random-fast-rng-0.1) + ("rust-randomize" ,rust-randomize-4)))) + (home-page "https://github.com/aspenluxxxy/nanorand-rs") + (synopsis "Tiny, fast, zero-dep library for random number generation") + (description + "This library is meant for fast, random number generation with +quick compile time, and minimal dependencies.") + (license license:zlib))) + (define-public rust-nasm-rs-0.2 (package (name "rust-nasm-rs") -- cgit v1.2.3