Subject: [bug#71076] [PATCH 53/81] gnu: Add rust-h3-quinn-0.0.5.

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

* gnu/packages/crates-web.scm (rust-h3-quinn-0.0.5): Add variable.
(rust-h3-quinn-0.0.4): Inherit from rust-h3-quinn-0.0.5.

Change-Id: Ia9725c6f61e902c6b80dd8fbc1f9328e21daad7f
---
 gnu/packages/crates-web.scm | 37 ++++++++++++++++++++++++++++++-------
 1 file changed, 30 insertions(+), 7 deletions(-)

diff --git a/gnu/packages/crates-web.scm b/gnu/packages/crates-web.scm
index 30df5dd9fa..88d73d8b73 100644
--- a/gnu/packages/crates-web.scm
+++ b/gnu/packages/crates-web.scm
@@ -2665,8 +2665,37 @@ (define-public rust-h3-0.0.2
                        ("rust-tokio" ,rust-tokio-1)
                        ("rust-tracing" ,rust-tracing-0.1))))))
 
+(define-public rust-h3-quinn-0.0.5
+  (package
+    (name "rust-h3-quinn")
+    (version "0.0.5")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "h3-quinn" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "0ii06bi5a19k4qfkppn5019nw8xca2wzfl66cax949jc1v66ny3k"))))
+    (build-system cargo-build-system)
+    (arguments
+     (list
+      #:cargo-inputs (list rust-bytes-1
+                           rust-futures-0.3
+                           rust-h3-0.0.4
+                           rust-quinn-0.10
+                           rust-quinn-proto-0.10
+                           rust-tokio-1
+                           rust-tokio-util-0.7)))
+    (home-page "https://github.com/hyperium/h3")
+    (synopsis "QUIC transport implementation based on Quinn")
+    (description
+     "This package provides a QUIC transport implementation based on
+Quinn.")
+    (license license:expat)))
+
 (define-public rust-h3-quinn-0.0.4
   (package
+    (inherit rust-h3-quinn-0.0.5)
     (name "rust-h3-quinn")
     (version "0.0.4")
     (source
@@ -2676,7 +2705,6 @@ (define-public rust-h3-quinn-0.0.4
        (file-name (string-append name "-" version ".tar.gz"))
        (sha256
         (base32 "1r0sm0j51crlfpy2j1wfhgpg2lrfq2xmf5qjd98ksg3h9l0pb5mc"))))
-    (build-system cargo-build-system)
     (arguments
      `(#:cargo-inputs (("rust-bytes" ,rust-bytes-1)
                        ("rust-futures" ,rust-futures-0.3)
@@ -2684,12 +2712,7 @@ (define-public rust-h3-quinn-0.0.4
                        ("rust-quinn" ,rust-quinn-0.10)
                        ("rust-quinn-proto" ,rust-quinn-proto-0.10)
                        ("rust-tokio" ,rust-tokio-1)
-                       ("rust-tokio-util" ,rust-tokio-util-0.7))))
-    (home-page "https://github.com/hyperium/h3")
-    (synopsis "QUIC transport implementation based on Quinn")
-    (description
-     "This package provides QUIC transport implementation based on Quinn.")
-    (license license:expat)))
+                       ("rust-tokio-util" ,rust-tokio-util-0.7))))))
 
 (define-public rust-h3-quinn-0.0.3
   (package
-- 
2.41.0