Subject: [bug#71076] [PATCH 51/81] gnu: Add rust-hyper-tls-0.6.

From: Herman Rimm <[email-masked]>
Date: Mon, 20 May 2024 10:58:56 +0200

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

Change-Id: Ibfec1c3a4e906e93ec2f0793029c37559c682097
---
 gnu/packages/crates-web.scm | 43 +++++++++++++++++++++++++++++++------
 1 file changed, 36 insertions(+), 7 deletions(-)

diff --git a/gnu/packages/crates-web.scm b/gnu/packages/crates-web.scm
index 8291a42318..12706984ab 100644
--- a/gnu/packages/crates-web.scm
+++ b/gnu/packages/crates-web.scm
@@ -3959,8 +3959,43 @@ (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.6
+  (package
+    (name "rust-hyper-tls")
+    (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
+          "1q36x2yps6hhvxq5r7mc8ph9zz6xlb573gx0x3yskb0fi736y83h"))))
+    (build-system cargo-build-system)
+    (arguments
+     (list
+      #:cargo-inputs (list rust-bytes-1
+                           rust-http-body-util-0.1
+                           rust-hyper-1
+                           rust-hyper-util-0.1
+                           rust-native-tls-0.2
+                           rust-tokio-1
+                           rust-tokio-native-tls-0.3
+                           rust-tower-service-0.3)
+      #:cargo-development-inputs (list rust-hyper-util-0.1
+                                       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
@@ -3970,7 +4005,6 @@ (define-public rust-hyper-tls-0.5
        (file-name (string-append name "-" version ".tar.gz"))
        (sha256
         (base32 "01crgy13102iagakf6q4mb75dprzr7ps1gj0l5hxm1cvm7gks66n"))))
-    (build-system cargo-build-system)
     (arguments
      `(#:skip-build? #t
        #:cargo-inputs
@@ -3978,12 +4012,7 @@ (define-public rust-hyper-tls-0.5
         ("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))))
-    (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))))
+        ("rust-tokio-native-tls" ,rust-tokio-native-tls-0.3))))))
 
 (define-public rust-hyper-tls-0.4
   (package
-- 
2.41.0