Subject: [bug#75980] [PATCH rust-team 010/106] gnu: rust-http-0.2: Use newer rust-indexmap.

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

* gnu/packages/crates-web.scm (rust-http-0.2): Use rust-indexmap-1
instead of 1.8.  [source]: Relax indexmap version requirement.

Change-Id: I66be1f3061d5b7c306319e7560704d5a12a1096b
---
 gnu/packages/crates-web.scm | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/crates-web.scm b/gnu/packages/crates-web.scm
index e6667827afe..2f04b1e7eff 100644
--- a/gnu/packages/crates-web.scm
+++ b/gnu/packages/crates-web.scm
@@ -3847,7 +3847,11 @@ (define-public rust-http-0.2
        (uri (crate-uri "http" version))
        (file-name (string-append name "-" version ".tar.gz"))
        (sha256
-        (base32 "1w81s4bcbmcj9bjp7mllm8jlz6b31wzvirz8bgpzbqkpwmbvn730"))))
+        (base32 "1w81s4bcbmcj9bjp7mllm8jlz6b31wzvirz8bgpzbqkpwmbvn730"))
+       (modules '((guix build utils)))
+       ;; Tests pass with indexmap 1.9.3.
+       (snippet #~(substitute* "Cargo.toml"
+                    (("<=1.8") "1.8")))))
     (arguments
      `(#:cargo-inputs
        (("rust-bytes" ,rust-bytes-1)
@@ -3855,7 +3859,7 @@ (define-public rust-http-0.2
         ("rust-itoa" ,rust-itoa-1))
        #:cargo-development-inputs
        (("rust-doc-comment" ,rust-doc-comment-0.3)
-        ("rust-indexmap" ,rust-indexmap-1.8)
+        ("rust-indexmap" ,rust-indexmap-1)
         ("rust-quickcheck" ,rust-quickcheck-0.9)
         ("rust-rand" ,rust-rand-0.7)
         ("rust-seahash" ,rust-seahash-3)
-- 
2.47.1