Subject: [bug#69620] [rust-team v3 5/9] gnu: Bumps rust-hyper-sync-rustls to 0.3.0-rc.17

From: Aaron Covrig <[email-masked]>
Date: Sun, 24 Mar 2024 11:19:57 -0400

* gnu/packages/crates-web.scm (rust-hyper-sync-rustls-0.3): Bumps to
  0.3.0-rc.17
* gnu/packages/crates-web.scm (rust-hyper-sync-rustls-0.3-rc.4): New
  variable (rc.17 is not backwards compatible with rc.4)
---
 gnu/packages/crates-web.scm | 47 +++++++++++++++++++++++++++----------
 1 file changed, 34 insertions(+), 13 deletions(-)

diff --git a/gnu/packages/crates-web.scm b/gnu/packages/crates-web.scm
index 9b2d27dc69..d1cc9768de 100644
--- a/gnu/packages/crates-web.scm
+++ b/gnu/packages/crates-web.scm
@@ -42,6 +42,7 @@ (define-module (gnu packages crates-web)
   #:use-module (gnu packages crates-windows)
   #:use-module (gnu packages curl)
   #:use-module (gnu packages gtk)
+  #:use-module (gnu packages perl)
   #:use-module (gnu packages pkg-config)
   #:use-module (gnu packages tls)
   #:use-module (gnu packages webkit))
@@ -3776,33 +3777,53 @@ (define-public rust-hyper-rustls-0.21
 (define-public rust-hyper-sync-rustls-0.3
   (package
     (name "rust-hyper-sync-rustls")
-    (version "0.3.0-rc.4")
+    (version "0.3.0-rc.17")
     (source
      (origin
        (method url-fetch)
        (uri (crate-uri "hyper-sync-rustls" version))
        (file-name (string-append name "-" version ".tar.gz"))
        (sha256
-        (base32 "16zirxhsk26kz5jxxxs37wxsm02id97h57kkqs512fj1j0x486kd"))))
+        (base32 "1az37mc4dgxgpqc745r495nm2dwx48amw2w6c8mnwj00xb219c2c"))))
     (build-system cargo-build-system)
     (arguments
-     `(#:cargo-test-flags
-       '("--release" "--"
-         ;; not all files included
-         "--skip=client"
-         "--skip=server")
-       #:cargo-inputs
-       (("rust-hyper" ,rust-hyper-0.10)
-        ("rust-rustls" ,rust-rustls-0.14)
-        ("rust-webpki" ,rust-webpki-0.18)
-        ("rust-webpki-roots" ,rust-webpki-roots-0.15))
-       #:cargo-development-inputs (("rust-env-logger" ,rust-env-logger-0.5))))
+     `(#:cargo-test-flags '("--release" "--"
+                            ;; skip tests client/server tests
+                            "--skip=client" "--skip=server")
+       #:cargo-inputs (("rust-hyper" ,rust-hyper-0.10)
+                       ("rust-rustls" ,rust-rustls-0.17)
+                       ("rust-webpki" ,rust-webpki-0.21)
+                       ("rust-webpki-roots" ,rust-webpki-roots-0.19))
+       #:cargo-development-inputs (("rust-env-logger" ,rust-env-logger-0.7))))
+    (native-inputs (list perl))
     (home-page "https://github.com/SergioBenitez/hyper-sync-rustls")
     (synopsis "Glue code for Rustls and synchronous Hyper")
     (description
      "This package provides glue code for Rustls and synchronous Hyper.")
     (license (list license:expat license:asl2.0))))
 
+(define-public rust-hyper-sync-rustls-0.3-rc4
+  (package
+    (inherit rust-hyper-sync-rustls-0.3)
+    (name "rust-hyper-sync-rustls")
+    (version "0.3.0-rc.4")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "hyper-sync-rustls" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "16zirxhsk26kz5jxxxs37wxsm02id97h57kkqs512fj1j0x486kd"))))
+    (arguments
+     `(#:cargo-test-flags '("--release" "--"
+                            ;; not all files included
+                            "--skip=client" "--skip=server")
+       #:cargo-inputs (("rust-hyper" ,rust-hyper-0.10)
+                       ("rust-rustls" ,rust-rustls-0.14)
+                       ("rust-webpki" ,rust-webpki-0.18)
+                       ("rust-webpki-roots" ,rust-webpki-roots-0.15))
+       #:cargo-development-inputs (("rust-env-logger" ,rust-env-logger-0.5))))))
+
 (define-public rust-hyper-timeout-0.4
   (package
     (name "rust-hyper-timeout")
-- 
2.41.0