Subject: [bug#75127] [PATCH v8 20/44] gnu: Add rust-future-queue-0.3.

From: Herman Rimm <[email-masked]>
Date: Wed, 5 Feb 2025 19:31:35 +0100

From: Jordan Moore <[email-masked]>

* gnu/packages/crates-io.scm (rust-future-queue-0.3): New variable.

Change-Id: I75a8fb67e7e7ea76e47f6dd13c2ba7e373434dc7
---
 gnu/packages/crates-io.scm | 30 ++++++++++++++++++++++++++++++
 1 file changed, 30 insertions(+)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index b311109c493..45e779c587b 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -28060,6 +28060,36 @@ (define-public rust-futf-0.1
     (description "Handling fragments of UTF-8.")
     (license (list license:asl2.0 license:expat))))
 
+(define-public rust-future-queue-0.3
+  (package
+    (name "rust-future-queue")
+    (version "0.3.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "future-queue" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "1rmjyqy5z87pwghvikmxn18mgdbr6k3w7zmx5qf12h8smrlamlf0"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-inputs (("rust-fnv" ,rust-fnv-1)
+                       ("rust-futures-util" ,rust-futures-util-0.3)
+                       ("rust-pin-project-lite" ,rust-pin-project-lite-0.2))
+       #:cargo-development-inputs
+       (("rust-futures" ,rust-futures-0.3)
+        ("rust-maplit" ,rust-maplit-1)
+        ("rust-proptest-derive" ,rust-proptest-derive-0.3)
+        ("rust-proptest" ,rust-proptest-1)
+        ("rust-tokio" ,rust-tokio-1)
+        ("rust-tokio-stream" ,rust-tokio-stream-0.1))))
+    (home-page "https://github.com/nextest-rs/future-queue")
+    (synopsis "Adapters to manage a weighted queue of futures")
+    (description
+     "This package provides adapters to manage a queue of futures, where
+each future can have a different weight.")
+    (license (list license:expat license:asl2.0))))
+
 (define-public rust-futures-0.3
   (package
     (name "rust-futures")
-- 
2.47.1