Subject: [PATCH rust-team 22/37] gnu: Add rust-hyper-tls-0.6.

From: Nicolas Goaziou <[email-masked]>
Date: Wed, 22 May 2024 11:45:40 +0200

* gnu/packages/crates-web.scm (rust-hyper-tls-0.6): New variable.
(rust-hyper-tls-0.5): Inherit from above.

Change-Id: I2bf346c71bf4785b287aa91aab91f3575ba42e1c
---
 gnu/packages/crates-web.scm | 42 ++++++++++++++++++++++++++++++-------
 1 file changed, 35 insertions(+), 7 deletions(-)

diff --git a/gnu/packages/crates-web.scm b/gnu/packages/crates-web.scm
index 52b5d1cef3..c526f2f74e 100644
--- a/gnu/packages/crates-web.scm
+++ b/gnu/packages/crates-web.scm
@@ -3913,32 +3913,60 @@ (define-public rust-hyper-timeout-0.4
 to be used with Hyper client.")
     (license (list license:expat license:asl2.0))))
 
-(define-public rust-hyper-tls-0.5
+(define-public rust-hyper-tls-0.6
   (package
     (name "rust-hyper-tls")
-    (version "0.5.0")
+    (version "0.6.0")
     (source
      (origin
        (method url-fetch)
        (uri (crate-uri "hyper-tls" version))
        (file-name (string-append name "-" version ".tar.gz"))
        (sha256
-        (base32 "01crgy13102iagakf6q4mb75dprzr7ps1gj0l5hxm1cvm7gks66n"))))
+        (base32 "1q36x2yps6hhvxq5r7mc8ph9zz6xlb573gx0x3yskb0fi736y83h"))))
     (build-system cargo-build-system)
     (arguments
-     `(#:skip-build? #t
-       #:cargo-inputs
+     `(#:cargo-inputs
        (("rust-bytes" ,rust-bytes-1)
-        ("rust-hyper" ,rust-hyper-0.14)
+        ("rust-http-body-util" ,rust-http-body-util-0.1)
+        ("rust-hyper" ,rust-hyper-1)
+        ("rust-hyper-util" ,rust-hyper-util-0.1)
         ("rust-native-tls" ,rust-native-tls-0.2)
         ("rust-tokio" ,rust-tokio-1)
-        ("rust-tokio-native-tls" ,rust-tokio-native-tls-0.3))))
+        ("rust-tokio-native-tls" ,rust-tokio-native-tls-0.3)
+        ("rust-tower-service" ,rust-tower-service-0.3))
+       #:cargo-development-inputs
+       (("rust-hyper-util" ,rust-hyper-util-0.1)
+        ("rust-tokio" ,rust-tokio-1))))
+    (native-inputs (list pkg-config))
+    (inputs (list openssl))
     (home-page "https://hyper.rs")
     (synopsis "Default TLS implementation for use with hyper")
     (description "This package provides the default TLS implementation for use
 with hyper.")
     (license (list license:expat license:asl2.0))))
 
+(define-public rust-hyper-tls-0.5
+  (package
+    (inherit rust-hyper-tls-0.6)
+    (name "rust-hyper-tls")
+    (version "0.5.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "hyper-tls" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "01crgy13102iagakf6q4mb75dprzr7ps1gj0l5hxm1cvm7gks66n"))))
+    (arguments
+     `(#:skip-build? #t
+       #:cargo-inputs
+       (("rust-bytes" ,rust-bytes-1)
+        ("rust-hyper" ,rust-hyper-0.14)
+        ("rust-native-tls" ,rust-native-tls-0.2)
+        ("rust-tokio" ,rust-tokio-1)
+        ("rust-tokio-native-tls" ,rust-tokio-native-tls-0.3))))))
+
 (define-public rust-hyper-tls-0.4
   (package
     (inherit rust-hyper-tls-0.5)
-- 
2.41.0