summaryrefslogtreecommitdiff
path: root/gnu/packages/crates-web.scm
diff options
context:
space:
mode:
authorEfraim Flashner <efraim@flashner.co.il>2024-12-25 16:12:14 +0200
committerEfraim Flashner <efraim@flashner.co.il>2025-01-06 12:19:06 +0200
commitadf9b3e8d48bafd7cb1ce69b0a5302e858e19131 (patch)
tree176e152951fc18a10735e3614f0f0b706d3be9d8 /gnu/packages/crates-web.scm
parent6157be1cb600d8bdca45856367ce288b7cbef6a7 (diff)
gnu: Add rust-hyper-timeout-0.5.
* gnu/packages/crates-web.scm (rust-hyper-timeout-0.5): New variable. (rust-hyper-timeout-0.4): Inherit from rust-hyper-timeout-0.5. Change-Id: I20967c3585414f8d0407c18db51153cd41a2634c
Diffstat (limited to 'gnu/packages/crates-web.scm')
-rw-r--r--gnu/packages/crates-web.scm46
1 files changed, 38 insertions, 8 deletions
diff --git a/gnu/packages/crates-web.scm b/gnu/packages/crates-web.scm
index ecc5397c99..a966080254 100644
--- a/gnu/packages/crates-web.scm
+++ b/gnu/packages/crates-web.scm
@@ -4392,8 +4392,45 @@ dependencies.")
"This package provides glue code for Rustls and synchronous Hyper.")
(license (list license:expat license:asl2.0))))
+(define-public rust-hyper-timeout-0.5
+ (package
+ (name "rust-hyper-timeout")
+ (version "0.5.2")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "hyper-timeout" version))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32 "1c431l5ckr698248yd6bnsmizjy2m1da02cbpmsnmkpvpxkdb41b"))))
+ (build-system cargo-build-system)
+ (arguments
+ `(#:cargo-test-flags '("--"
+ "--skip=tests::test_read_timeout"
+ "--skip=tests::test_timeout_connector"
+ "--skip=test_upload_timeout")
+ #:cargo-inputs (("rust-hyper" ,rust-hyper-1)
+ ("rust-hyper-util" ,rust-hyper-util-0.1)
+ ("rust-pin-project-lite" ,rust-pin-project-lite-0.2)
+ ("rust-tokio" ,rust-tokio-1)
+ ("rust-tower-service" ,rust-tower-service-0.3))
+ #:cargo-development-inputs (("rust-http-body-util" ,rust-http-body-util-0.1)
+ ("rust-hyper" ,rust-hyper-1)
+ ("rust-hyper-tls" ,rust-hyper-tls-0.6)
+ ("rust-hyper-util" ,rust-hyper-util-0.1)
+ ("rust-tokio" ,rust-tokio-1))))
+ (native-inputs (list pkg-config))
+ (inputs (list openssl))
+ (home-page "https://github.com/hjr3/hyper-timeout")
+ (synopsis "Connect, read and write timeout aware connector for Hyper")
+ (description
+ "This package provides a connect, read and write timeout aware connector
+to be used with Hyper client.")
+ (license (list license:expat license:asl2.0))))
+
(define-public rust-hyper-timeout-0.4
(package
+ (inherit rust-hyper-timeout-0.5)
(name "rust-hyper-timeout")
(version "0.4.1")
(source
@@ -4403,20 +4440,13 @@ dependencies.")
(file-name (string-append name "-" version ".tar.gz"))
(sha256
(base32 "1c8k3g8k2yh1gxvsx9p7amkimgxhl9kafwpj7jyf8ywc5r45ifdv"))))
- (build-system cargo-build-system)
(arguments
`(#:skip-build? #t
#:cargo-inputs
(("rust-hyper" ,rust-hyper-0.14)
("rust-pin-project-lite" ,rust-pin-project-lite-0.2)
("rust-tokio" ,rust-tokio-1)
- ("rust-tokio-io-timeout" ,rust-tokio-io-timeout-1))))
- (home-page "https://github.com/hjr3/hyper-timeout")
- (synopsis "Connect, read and write timeout aware connector for Hyper")
- (description
- "This package provides a connect, read and write timeout aware connector
-to be used with Hyper client.")
- (license (list license:expat license:asl2.0))))
+ ("rust-tokio-io-timeout" ,rust-tokio-io-timeout-1))))))
(define-public rust-hyper-tls-0.6
(package