Subject: [bug#71076] [PATCH 49/81] gnu: Add rust-tokio-rustls-0.26.

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

* gnu/packages/crates-io.scm (rust-tokio-rustls-0.26): Add variable.
(rust-tokio-rustls-0.25): Inherit from rust-tokio-rustls-0.26.

Change-Id: I301c40cb70f576b8478328044c3abffdb3ab190c
---
 gnu/packages/crates-io.scm | 50 ++++++++++++++++++++++++++++++++------
 1 file changed, 42 insertions(+), 8 deletions(-)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 72e2c25df8..d7311a7d55 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -84708,8 +84708,49 @@ (define-public rust-tokio-reactor-0.1
      "Event loop that drives Tokio I/O resources.")
     (license license:expat)))
 
+(define-public rust-tokio-rustls-0.26
+  (package
+    (name "rust-tokio-rustls")
+    (version "0.26.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "tokio-rustls" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32
+          "1m00czrmk8x7pdjnz10a3da3i1d0sdf9j9vfp5dnk5ss1q6w8yqc"))))
+    (build-system cargo-build-system)
+    (arguments
+     (list
+      #:cargo-test-flags
+      `(list "--release" "--"
+             ,(string-append "--skip=common::test_stream::stream_"
+                             "handshake_regression_issues_77")
+             "--skip=test_modern"
+             "--skip=test_modern_vectored"
+             "--skip=test_tls12"
+             "--skip=test_tls12_vectored")
+      #:cargo-inputs (list rust-rustls-0.23
+                           rust-rustls-pki-types-1
+                           rust-tokio-1)
+      #:cargo-development-inputs (list rust-argh-0.1
+                                       rust-futures-util-0.3
+                                       rust-lazy-static-1
+                                       rust-rustls-pemfile-2
+                                       rust-tokio-1
+                                       rust-webpki-roots-0.26)))
+    (native-inputs (list cmake-minimal))
+    (home-page "https://github.com/rustls/tokio-rustls")
+    (synopsis "Asynchronous TLS/SSL streams for Tokio")
+    (description
+     "This package provides Asynchronous TLS/SSL streams for Tokio using
+Rustls.")
+    (license (list license:expat license:asl2.0))))
+
 (define-public rust-tokio-rustls-0.25
   (package
+    (inherit rust-tokio-rustls-0.26)
     (name "rust-tokio-rustls")
     (version "0.25.0")
     (source
@@ -84719,7 +84760,6 @@ (define-public rust-tokio-rustls-0.25
        (file-name (string-append name "-" version ".tar.gz"))
        (sha256
         (base32 "03w6d5aqqf084rmcmrsyq5grhydl53blaiqcl0i2yfnv187hqpkp"))))
-    (build-system cargo-build-system)
     (arguments
      `(#:tests? #f          ; Issue with the certificate test dates.
        #:cargo-inputs (("rust-rustls" ,rust-rustls-0.22)
@@ -84731,13 +84771,7 @@ (define-public rust-tokio-rustls-0.25
                                    ("rust-rustls-pemfile" ,rust-rustls-pemfile-2)
                                    ("rust-rustls-webpki" ,rust-rustls-webpki-0.102)
                                    ("rust-tokio" ,rust-tokio-1)
-                                   ("rust-webpki-roots" ,rust-webpki-roots-0.26))))
-    (home-page "https://github.com/tokio-rs/tls")
-    (synopsis "Asynchronous TLS/SSL streams for Tokio")
-    (description
-     "This package provides asynchronous TLS/SSL streams for Tokio using
-Rustls.")
-    (license (list license:expat license:asl2.0))))
+                                   ("rust-webpki-roots" ,rust-webpki-roots-0.26))))))
 
 (define-public rust-tokio-rustls-0.24
   (package
-- 
2.41.0