diff mbox series

[bug#69890,35/43] gnu: Add rust-rocket-http-0.5.

Message ID 71892f91b20067da2b76d8ddd78ea3ebd3546a2f.1710817681.git.normally_js@posteo.net
State New
Headers show
Series gnu: Add procs. | expand

Commit Message

normally_js March 19, 2024, 3:51 a.m. UTC
* gnu/packages/crates-web.scm (rust-rocket-http-0.5): New variable.

Change-Id: I56154ddf506c3ecc57dfbb72b032b6de043aeb30
---
 gnu/packages/crates-web.scm | 55 +++++++++++++++++++++++++++++++------
 1 file changed, 47 insertions(+), 8 deletions(-)
diff mbox series

Patch

diff --git a/gnu/packages/crates-web.scm b/gnu/packages/crates-web.scm
index 00839914a7..c95c228d23 100644
--- a/gnu/packages/crates-web.scm
+++ b/gnu/packages/crates-web.scm
@@ -3749,8 +3749,54 @@  (define-public rust-rocket-codegen-0.4
      "This package provides procedural macros for the Rocket web framework.")
     (license (list license:expat license:asl2.0))))
 
+(define-public rust-rocket-http-0.5
+  (package
+    (name "rust-rocket-http")
+    (version "0.5.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "rocket_http" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "17iq208zf9rfxdnx8hfjxnn51074cc9li99yjigzwnfhjhv6d89p"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:tests? #f
+       #:cargo-inputs (("rust-cookie" ,rust-cookie-0.18)
+                       ("rust-either" ,rust-either-1)
+                       ("rust-futures" ,rust-futures-0.3)
+                       ("rust-http" ,rust-http-0.2)
+                       ("rust-hyper" ,rust-hyper-0.14)
+                       ("rust-indexmap" ,rust-indexmap-2)
+                       ("rust-log" ,rust-log-0.4)
+                       ("rust-memchr" ,rust-memchr-2)
+                       ("rust-pear" ,rust-pear-0.2)
+                       ("rust-percent-encoding" ,rust-percent-encoding-2)
+                       ("rust-pin-project-lite" ,rust-pin-project-lite-0.2)
+                       ("rust-ref-cast" ,rust-ref-cast-1)
+                       ("rust-rustls" ,rust-rustls-0.21)
+                       ("rust-rustls-pemfile" ,rust-rustls-pemfile-1)
+                       ("rust-serde" ,rust-serde-1)
+                       ("rust-smallvec" ,rust-smallvec-1)
+                       ("rust-stable-pattern" ,rust-stable-pattern-0.1)
+                       ("rust-state" ,rust-state-0.6)
+                       ("rust-time" ,rust-time-0.3)
+                       ("rust-tokio" ,rust-tokio-1)
+                       ("rust-tokio-rustls" ,rust-tokio-rustls-0.24)
+                       ("rust-uncased" ,rust-uncased-0.9)
+                       ("rust-uuid" ,rust-uuid-1)
+                       ("rust-x509-parser" ,rust-x509-parser-0.13))))
+    (home-page "https://rocket.rs")
+    (synopsis "HTTP requests, responses and headers tooling for Rocket")
+    (description
+     "This package provides types, traits, and parsers for HTTP requests,
+responses, and headers for the Rocket web framework.")
+    (license (list license:expat license:asl2.0))))
+
 (define-public rust-rocket-http-0.4
   (package
+    (inherit rust-rocket-http-0.5)
     (name "rust-rocket-http")
     (version "0.4.7")
     (source
@@ -3760,7 +3806,6 @@  (define-public rust-rocket-http-0.4
        (file-name (string-append name "-" version ".tar.gz"))
        (sha256
         (base32 "0ga98nbcga8amg4xhrfkn1wljnqx9h0vv7mnay9g66vsxl042dnf"))))
-    (build-system cargo-build-system)
     (arguments
      `(#:skip-build? #t
        #:cargo-inputs
@@ -3774,13 +3819,7 @@  (define-public rust-rocket-http-0.4
         ("rust-smallvec" ,rust-smallvec-1)
         ("rust-state" ,rust-state-0.4)
         ("rust-time" ,rust-time-0.1)
-        ("rust-unicode-xid" ,rust-unicode-xid-0.1))))
-    (home-page "https://rocket.rs")
-    (synopsis "HTTP requests, responses and headers tooling for Rocket")
-    (description
-     "This package provides types, traits, and parsers for HTTP requests,
-responses, and headers for the Rocket web framework.")
-    (license (list license:expat license:asl2.0))))
+        ("rust-unicode-xid" ,rust-unicode-xid-0.1))))))
 
 (define-public rust-stdweb-0.4
   (package