diff options
author | Herman Rimm <herman@rimm.ee> | 2024-02-18 22:02:54 +0100 |
---|---|---|
committer | Efraim Flashner <efraim@flashner.co.il> | 2024-07-19 00:42:22 +0300 |
commit | 5dd1fc7f710f79fa632ad467b6c0d18903d47958 (patch) | |
tree | 6498d39287acd6087e05df14311a6b1787e7e45c | |
parent | 683e154741c509695b9c55cd7679432226ec5967 (diff) | |
download | guix-5dd1fc7f710f79fa632ad467b6c0d18903d47958.tar.gz guix-5dd1fc7f710f79fa632ad467b6c0d18903d47958.zip |
gnu: Add rust-h2-0.4.
* gnu/packages/crates-web.scm (rust-h2-0.4): Add variable.
(rust-h2-0.3): Inherit rust-h2-0.4.
Change-Id: I929d97b3f4a0ac9b015c39e92993190c062a5192
Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
-rw-r--r-- | gnu/packages/crates-web.scm | 77 |
1 files changed, 56 insertions, 21 deletions
diff --git a/gnu/packages/crates-web.scm b/gnu/packages/crates-web.scm index 468cb65b38..5f750c2231 100644 --- a/gnu/packages/crates-web.scm +++ b/gnu/packages/crates-web.scm @@ -1883,48 +1883,83 @@ transfer coding.") (description "This package provides a library to fetch gemini pages.") (license license:expat))) -(define-public rust-h2-0.3 +(define-public rust-h2-0.4 (package (name "rust-h2") - (version "0.3.21") + (version "0.4.3") (source (origin (method url-fetch) (uri (crate-uri "h2" version)) (file-name (string-append name "-" version ".tar.gz")) (sha256 - (base32 "0cq8g5bgk3fihnqicy3g8gc3dpsalzqjg4bjyip9g4my26m27z4i")))) + (base32 "1m4rj76zl77jany6p10k4mm1cqwsrlc1dmgmxwp3jy7kwk92vvji")))) (build-system cargo-build-system) (arguments - `(#:tests? #f ; Not all files included. - #:cargo-inputs - (("rust-bytes" ,rust-bytes-1) - ("rust-fnv" ,rust-fnv-1) - ("rust-futures-core" ,rust-futures-core-0.3) - ("rust-futures-sink" ,rust-futures-sink-0.3) - ("rust-futures-util" ,rust-futures-util-0.3) - ("rust-http" ,rust-http-0.2) - ("rust-indexmap" ,rust-indexmap-1) - ("rust-slab" ,rust-slab-0.4) - ("rust-tokio" ,rust-tokio-1) - ("rust-tokio-util" ,rust-tokio-util-0.7) - ("rust-tracing" ,rust-tracing-0.1)) + `(#:cargo-inputs (("rust-bytes" ,rust-bytes-1) + ("rust-fnv" ,rust-fnv-1) + ("rust-futures-core" ,rust-futures-core-0.3) + ("rust-futures-sink" ,rust-futures-sink-0.3) + ("rust-futures-util" ,rust-futures-util-0.3) + ("rust-http" ,rust-http-1) + ("rust-indexmap" ,rust-indexmap-2) + ("rust-slab" ,rust-slab-0.4) + ("rust-tokio" ,rust-tokio-1) + ("rust-tokio-util" ,rust-tokio-util-0.7) + ("rust-tracing" ,rust-tracing-0.1)) #:cargo-development-inputs - (("rust-env-logger" ,rust-env-logger-0.9) + (("rust-env-logger" ,rust-env-logger-0.10) ("rust-hex" ,rust-hex-0.4) ("rust-quickcheck" ,rust-quickcheck-1) ("rust-rand" ,rust-rand-0.8) ("rust-serde" ,rust-serde-1) ("rust-serde-json" ,rust-serde-json-1) ("rust-tokio" ,rust-tokio-1) - ("rust-tokio-rustls" ,rust-tokio-rustls-0.23) + ("rust-tokio-rustls" ,rust-tokio-rustls-0.24) ("rust-walkdir" ,rust-walkdir-2) - ("rust-webpki-roots" ,rust-webpki-roots-0.22)))) + ("rust-webpki-roots" ,rust-webpki-roots-0.25)))) (home-page "https://github.com/hyperium/h2") - (synopsis "HTTP/2.0 client and server") - (description "This package provides an HTTP/2.0 client and server.") + (synopsis "HTTP/2 client and server") + (description "This package provides an HTTP/2 client and server.") (license license:expat))) +(define-public rust-h2-0.3 + (package + (inherit rust-h2-0.4) + (name "rust-h2") + (version "0.3.21") + (source + (origin + (method url-fetch) + (uri (crate-uri "h2" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "0cq8g5bgk3fihnqicy3g8gc3dpsalzqjg4bjyip9g4my26m27z4i")))) + (build-system cargo-build-system) + (arguments + `(#:tests? #f ; Not all files included. + #:cargo-inputs (("rust-bytes" ,rust-bytes-1) + ("rust-fnv" ,rust-fnv-1) + ("rust-futures-core" ,rust-futures-core-0.3) + ("rust-futures-sink" ,rust-futures-sink-0.3) + ("rust-futures-util" ,rust-futures-util-0.3) + ("rust-http" ,rust-http-0.2) + ("rust-indexmap" ,rust-indexmap-1) + ("rust-slab" ,rust-slab-0.4) + ("rust-tokio" ,rust-tokio-1) + ("rust-tokio-util" ,rust-tokio-util-0.7) + ("rust-tracing" ,rust-tracing-0.1)) + #:cargo-development-inputs (("rust-env-logger" ,rust-env-logger-0.9) + ("rust-hex" ,rust-hex-0.4) + ("rust-quickcheck" ,rust-quickcheck-1) + ("rust-rand" ,rust-rand-0.8) + ("rust-serde" ,rust-serde-1) + ("rust-serde-json" ,rust-serde-json-1) + ("rust-tokio" ,rust-tokio-1) + ("rust-tokio-rustls" ,rust-tokio-rustls-0.23) + ("rust-walkdir" ,rust-walkdir-2) + ("rust-webpki-roots" ,rust-webpki-roots-0.22)))))) + (define-public rust-h2-0.2 (package (inherit rust-h2-0.3) |