Subject: [rust-team v3 7/9] gnu: Bumps rust-rocket-http-0.4 to 0.4.11

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

* gnu/packages/crates-web.scm (rust-rocket-http-0.4): Bumps to 0.4.11
  and enables building
---
 gnu/packages/crates-web.scm | 35 ++++++++++++++++++++---------------
 1 file changed, 20 insertions(+), 15 deletions(-)

diff --git a/gnu/packages/crates-web.scm b/gnu/packages/crates-web.scm
index e105ddae66..fbdce9e9f6 100644
--- a/gnu/packages/crates-web.scm
+++ b/gnu/packages/crates-web.scm
@@ -4779,28 +4779,33 @@ (define-public rust-rocket-http-0.4
   (package
     (inherit rust-rocket-http-0.5)
     (name "rust-rocket-http")
-    (version "0.4.7")
+    (version "0.4.11")
     (source
      (origin
        (method url-fetch)
        (uri (crate-uri "rocket_http" version))
        (file-name (string-append name "-" version ".tar.gz"))
        (sha256
-        (base32 "0ga98nbcga8amg4xhrfkn1wljnqx9h0vv7mnay9g66vsxl042dnf"))))
+        (base32 "17xiivj4cp3anm4rxxpd8g58kzday1y2pgdys2i23wz1538wpy9b"))))
     (arguments
-     `(#:skip-build? #t
-       #:cargo-inputs
-       (("rust-cookie" ,rust-cookie-0.11)
-        ("rust-hyper" ,rust-hyper-0.10)
-        ("rust-hyper-sync-rustls" ,rust-hyper-sync-rustls-0.3)
-        ("rust-indexmap" ,rust-indexmap-1)
-        ("rust-pear" ,rust-pear-0.1)
-        ("rust-percent-encoding" ,rust-percent-encoding-1)
-        ("rust-rustls" ,rust-rustls-0.14)
-        ("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))))))
+     `(#:cargo-test-flags ;doctests depend on undeclared crates
+       '("--lib" "--bins" "--tests" "--release")
+       #:cargo-inputs (("rust-cookie" ,rust-cookie-0.11)
+                       ("rust-hyper" ,rust-hyper-0.10)
+                       ("rust-hyper-sync-rustls" ,rust-hyper-sync-rustls-0.3-rc4)
+                       ("rust-indexmap" ,rust-indexmap-1)
+                       ("rust-pear" ,rust-pear-0.1)
+                       ("rust-percent-encoding" ,rust-percent-encoding-1)
+                       ("rust-rustls" ,rust-rustls-0.14)
+                       ("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))
+       #:phases (modify-phases %standard-phases
+                  ;; Enable using nightly/dev features
+                  (add-after 'unpack 'enable-unstable-features
+                    (lambda _
+                      (setenv "RUSTC_BOOTSTRAP" "1"))))))))
 
 (define-public rust-salvo-0.16
   (package
-- 
2.41.0