Subject: [bug#75980] [PATCH rust-team 015/106] gnu: rust-awc-1: Add cargo-development-inputs.

From: Herman Rimm <[email-masked]>
Date: Fri, 31 Jan 2025 22:09:36 +0100

* gnu/packages/crates-web.scm (rust-awc-1): Build without tests.  Add
rust-actix-connect-1, rust-actix-http-1, rust-actix-server-1,
rust-actix-tls-1, rust-actix-utils-1, rust-env-logger-0.6,
rust-flate2-1, rust-futures-0.3, rust-webpki-0.21.

Change-Id: Id7bd48a1608456fee91229aec97b66f2db61d03b
---
 gnu/packages/crates-web.scm | 18 +++++++++++++-----
 1 file changed, 13 insertions(+), 5 deletions(-)

diff --git a/gnu/packages/crates-web.scm b/gnu/packages/crates-web.scm
index 98a1669d923..df3a6c143c2 100644
--- a/gnu/packages/crates-web.scm
+++ b/gnu/packages/crates-web.scm
@@ -2138,10 +2138,9 @@ (define-public rust-awc-1
        (file-name (string-append name "-" version ".tar.gz"))
        (sha256
         (base32 "1idacmq7n3irmdjkbxc5kdwspxk9w1gip94pcmfk7wky3m6isq6p"))))
-    ;; XXX: The crate fails to't build with with the same error as
-    ;; rust-actix-connect.  Skip build for now.
     (arguments
-     `(#:skip-build? #true
+     ;; The actix-web crate used may be too recent.
+     `(#:tests? #f
        #:cargo-inputs
        (("rust-actix-codec" ,rust-actix-codec-0.2)
         ("rust-actix-http" ,rust-actix-http-1)
@@ -2161,9 +2160,18 @@ (define-public rust-awc-1
         ("rust-serde-json" ,rust-serde-json-1)
         ("rust-serde-urlencoded" ,rust-serde-urlencoded-0.6))
        #:cargo-development-inputs
-       (("rust-actix-http-test" ,rust-actix-http-test-1)
+       (("rust-actix-connect" ,rust-actix-connect-1)
+        ("rust-actix-http" ,rust-actix-http-1)
+        ("rust-actix-http-test" ,rust-actix-http-test-1)
+        ("rust-actix-server" ,rust-actix-server-1)
+        ("rust-actix-tls" ,rust-actix-tls-1)
+        ("rust-actix-utils" ,rust-actix-utils-1)
         ("rust-actix-web" ,rust-actix-web-2)
-        ("rust-brotli" ,rust-brotli-3))))))
+        ("rust-brotli" ,rust-brotli-3)
+        ("rust-env-logger" ,rust-env-logger-0.6)
+        ("rust-flate2" ,rust-flate2-1)
+        ("rust-futures" ,rust-futures-0.3)
+        ("rust-webpki" ,rust-webpki-0.21))))))
 
 (define-public rust-awc-0.2
   (package
-- 
2.47.1