Subject: [bug#71076] [PATCH 03/81] gnu: Add rust-tower-http-0.3.

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

* gnu/packages/crates-web.scm (rust-tower-http-0.3): Add variable.

Change-Id: I96416d5161c32f36460b6309d7313f989a889f5f
---
 gnu/packages/crates-web.scm | 51 +++++++++++++++++++++++++++++++++++++
 1 file changed, 51 insertions(+)

diff --git a/gnu/packages/crates-web.scm b/gnu/packages/crates-web.scm
index 7903d85e12..07e0795738 100644
--- a/gnu/packages/crates-web.scm
+++ b/gnu/packages/crates-web.scm
@@ -5863,6 +5863,57 @@ (define-public rust-tower-http-0.4
         ("rust-uuid" ,rust-uuid-1)
         ("rust-zstd" ,rust-zstd-0.12))))))
 
+(define-public rust-tower-http-0.3
+  (package
+    (inherit rust-tower-http-0.4)
+    (name "rust-tower-http")
+    (version "0.3.5")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "tower-http" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "0n6qr26ivwqv19fih5pcjk2nvmys77m964lwkqiyil9dy15h8wzq"))))
+    (arguments
+     (list
+      #:cargo-test-flags '(list "--release"
+                                ;; Not the doc tests.
+                                "--lib" "--bins" "--tests")
+      #:cargo-inputs (list rust-async-compression-0.3
+                           rust-base64-0.13
+                           rust-bitflags-1
+                           rust-bytes-1
+                           rust-futures-core-0.3
+                           rust-futures-util-0.3
+                           rust-http-0.2
+                           rust-http-body-0.4
+                           rust-http-range-header-0.3
+                           rust-httpdate-1
+                           rust-iri-string-0.4
+                           rust-mime-0.3
+                           rust-mime-guess-2
+                           rust-percent-encoding-2
+                           rust-pin-project-lite-0.2
+                           rust-tokio-1
+                           rust-tokio-util-0.7
+                           rust-tower-0.4
+                           rust-tower-layer-0.3
+                           rust-tower-service-0.3
+                           rust-tracing-0.1
+                           rust-uuid-1)
+      #:cargo-development-inputs (list rust-brotli-3
+                                       rust-bytes-1
+                                       rust-flate2-1
+                                       rust-futures-0.3
+                                       rust-hyper-0.14
+                                       rust-once-cell-1
+                                       rust-serde-json-1
+                                       rust-tokio-1
+                                       rust-tower-0.4
+                                       rust-tracing-subscriber-0.3
+                                       rust-uuid-1)))))
+
 (define-public rust-tower-layer-0.3
   (package
     (name "rust-tower-layer")
-- 
2.41.0