From 4c4bac95f5204357c7ad7d8661c26c32e19f1ea8 Mon Sep 17 00:00:00 2001 From: Nicolas Goaziou Date: Sun, 3 Jan 2021 19:29:38 +0100 Subject: gnu: Add rust-bytes-1. * gnu/packages/crates-io.scm (rust-bytes-1): New variable. --- gnu/packages/crates-io.scm | 27 +++++++++++++++++++++++---- 1 file changed, 23 insertions(+), 4 deletions(-) (limited to 'gnu') diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index e75af2102d..59b444a538 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -3207,29 +3207,48 @@ little-endian.") (("rust-quickcheck" ,rust-quickcheck-0.2) ("rust-rand" ,rust-rand-0.3)))))) -(define-public rust-bytes-0.6 +(define-public rust-bytes-1 (package (name "rust-bytes") - (version "0.6.0") + (version "1.0.0") (source (origin (method url-fetch) (uri (crate-uri "bytes" version)) (file-name (string-append name "-" version ".tar.gz")) (sha256 - (base32 "05ivrcbgl4f7z2zzm9hbsi8cy66spi70xlm6fp16zsq4ylsvrp70")))) + (base32 "0wpsy2jwmbrsn7x6vcd00hw9vvz071lv8nrb25wrspvmkna8w7xd")))) (build-system cargo-build-system) (arguments `(#:cargo-inputs (("rust-serde" ,rust-serde-1)) #:cargo-development-inputs - (("rust-loom" ,rust-loom-0.3) + (("rust-loom" ,rust-loom-0.4) ("rust-serde-test" ,rust-serde-test-1)))) (home-page "https://github.com/tokio-rs/bytes") (synopsis "Types and traits for working with bytes") (description "This package is a utility library for working with bytes.") (license license:expat))) +(define-public rust-bytes-0.6 + (package + (inherit rust-bytes-1) + (name "rust-bytes") + (version "0.6.0") + (source + (origin + (method url-fetch) + (uri (crate-uri "bytes" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "05ivrcbgl4f7z2zzm9hbsi8cy66spi70xlm6fp16zsq4ylsvrp70")))) + (arguments + `(#:cargo-inputs + (("rust-serde" ,rust-serde-1)) + #:cargo-development-inputs + (("rust-loom" ,rust-loom-0.3) + ("rust-serde-test" ,rust-serde-test-1)))))) + (define-public rust-bytes-0.5 (package (inherit rust-bytes-0.6) -- cgit 1.4.1