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>
This commit is contained in:
Herman Rimm 2024-02-18 22:02:54 +01:00 committed by Efraim Flashner
parent 683e154741
commit 5dd1fc7f71
No known key found for this signature in database
GPG Key ID: 41AAE7DCCA3D8351

View File

@ -1883,8 +1883,49 @@ transfer coding.")
(description "This package provides a library to fetch gemini pages.")
(license license:expat)))
(define-public rust-h2-0.4
(package
(name "rust-h2")
(version "0.4.3")
(source
(origin
(method url-fetch)
(uri (crate-uri "h2" version))
(file-name (string-append name "-" version ".tar.gz"))
(sha256
(base32 "1m4rj76zl77jany6p10k4mm1cqwsrlc1dmgmxwp3jy7kwk92vvji"))))
(build-system cargo-build-system)
(arguments
`(#: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.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.24)
("rust-walkdir" ,rust-walkdir-2)
("rust-webpki-roots" ,rust-webpki-roots-0.25))))
(home-page "https://github.com/hyperium/h2")
(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
@ -1897,33 +1938,27 @@ transfer coding.")
(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))))
(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.")
(license license:expat)))
#: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