From 1f92a0ce5a794eea3a9415c0394e463435a9429c Mon Sep 17 00:00:00 2001 From: Zheng junjie <873216071@qq.com> Date: Fri, 11 Jun 2021 20:53:01 +0800 Subject: [PATCH] gnu: Add rust-arrayvec-0.7. * gnu/packages/crates-io.scm (rust-arrayvec-0.7): New variable. (rust-arrayvec-0.5): inherit from above. Signed-off-by: Nicolas Goaziou --- gnu/packages/crates-io.scm | 29 ++++++++++++++++++++++++++--- 1 file changed, 26 insertions(+), 3 deletions(-) diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index 1f1c2e92b4..1d1a32fe3c 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -2236,10 +2236,10 @@ (define-public rust-arrayref-0.3 "Macros to take array references of slices.") (license license:bsd-2))) -(define-public rust-arrayvec-0.5 +(define-public rust-arrayvec-0.7 (package (name "rust-arrayvec") - (version "0.5.2") + (version "0.7.0") (source (origin (method url-fetch) @@ -2248,7 +2248,7 @@ (define-public rust-arrayvec-0.5 (string-append name "-" version ".tar.gz")) (sha256 (base32 - "12q6hn01x5435bprwlb7w9m7817dyfq55yrl4psygr78bp32zdi3")))) + "1xza6jbs8x51yhh4qnwjw1crm33bhl975r965fpq1hqhpfq5hbss")))) (build-system cargo-build-system) (arguments `(#:skip-build? #t @@ -2266,6 +2266,29 @@ (define-public rust-arrayvec-0.5 ArrayVec and ArrayString.") (license (list license:expat license:asl2.0)))) +(define-public rust-arrayvec-0.5 + (package + (inherit rust-arrayvec-0.7) + (name "rust-arrayvec") + (version "0.5.2") + (source + (origin + (method url-fetch) + (uri (crate-uri "arrayvec" version)) + (file-name + (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "12q6hn01x5435bprwlb7w9m7817dyfq55yrl4psygr78bp32zdi3")))) + (arguments + `(#:skip-build? #t + #:cargo-inputs + (("rust-serde" ,rust-serde-1)) + #:cargo-development-inputs + (("rust-bencher" ,rust-bencher-0.1) + ("rust-matches" ,rust-matches-0.1) + ("rust-serde-test" ,rust-serde-test-1)))))) + (define-public rust-arrayvec-0.4 (package (inherit rust-arrayvec-0.5)