summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZheng junjie <873216071@qq.com>2021-06-11 20:53:01 +0800
committerNicolas Goaziou <mail@nicolasgoaziou.fr>2021-06-13 19:14:05 +0200
commit1f92a0ce5a794eea3a9415c0394e463435a9429c (patch)
tree70c4de44b880842d6dd90ddfa6ddb4a2e6f2fba0
parent493720d233d261ade5bb7365bb470daa24bd6f6f (diff)
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 <mail@nicolasgoaziou.fr>
-rw-r--r--gnu/packages/crates-io.scm29
1 files 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 @@ structures.")
"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 @@ structures.")
(string-append name "-" version ".tar.gz"))
(sha256
(base32
- "12q6hn01x5435bprwlb7w9m7817dyfq55yrl4psygr78bp32zdi3"))))
+ "1xza6jbs8x51yhh4qnwjw1crm33bhl975r965fpq1hqhpfq5hbss"))))
(build-system cargo-build-system)
(arguments
`(#:skip-build? #t
@@ -2266,6 +2266,29 @@ array (it can be stored on the stack too). Implements fixed capacity
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)