Subject: [bug#69526] [PATCH v2 02/10] gnu: Add rust-h3-quinn-0.0.3.

From: Tomas Volf <[email-masked]>
Date: Tue, 5 Mar 2024 00:19:11 +0100

* gnu/packages/crates-web.scm (rust-h3-quinn-0.0.3): New variable.

Change-Id: Ib9012197310f4c862d9b0aedfbdd8259955f78e2
---
v2: Move to -web.  Inherit from rust-h3-quinn-0.0.4.

 gnu/packages/crates-web.scm | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)

diff --git a/gnu/packages/crates-web.scm b/gnu/packages/crates-web.scm
index fe4945cf90..707d4eaaec 100644
--- a/gnu/packages/crates-web.scm
+++ b/gnu/packages/crates-web.scm
@@ -2092,6 +2092,27 @@ (define-public rust-h3-quinn-0.0.4
      "This package provides QUIC transport implementation based on Quinn.")
     (license license:expat)))

+(define-public rust-h3-quinn-0.0.3
+  (package
+    (inherit rust-h3-quinn-0.0.4)
+    (name "rust-h3-quinn")
+    (version "0.0.3")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "h3-quinn" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "0kf6bqmm751gwj24dqgb2rrwq8ibhv7z5v7ix4pfiwz4ccbiljid"))))
+    (arguments
+     `(#:skip-build? #t
+       #:cargo-inputs (("rust-bytes" ,rust-bytes-1)
+                       ("rust-futures" ,rust-futures-0.3)
+                       ("rust-h3" ,rust-h3-0.0.2)
+                       ("rust-quinn" ,rust-quinn-0.10)
+                       ("rust-quinn-proto" ,rust-quinn-proto-0.10)
+                       ("rust-tokio-util" ,rust-tokio-util-0.7))))))
+
 (define-public rust-headers-0.3
   (package
     (name "rust-headers")
--
2.41.0