Subject: [PATCH 058/156] gnu: Add rust-flume-0.11.

From: Wilko Meyer <[email-masked]>
Date: Mon, 8 Jan 2024 02:52:35 +0100

* gnu/packages/crates-io.scm (rust-flume-0.11): New variable.
(rust-flume-0.10): Inherit from rust-flume-0.11.

Change-Id: I762f1d830191d09506ea0edae217d479a22d65e5
---
 gnu/packages/crates-io.scm | 33 ++++++++++++++++++++++++++-------
 1 file changed, 26 insertions(+), 7 deletions(-)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 1cae9e485f0..5b6f96ecbc4 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -26931,8 +26931,33 @@ (define-public rust-fluid-attributes-0.4
 crate.")
     (license license:asl2.0)))
 
+(define-public rust-flume-0.11
+  (package
+    (name "rust-flume")
+    (version "0.11.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "flume" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "10girdbqn77wi802pdh55lwbmymy437k7kklnvj12aaiwaflbb2m"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:skip-build? #t
+       #:cargo-inputs (("rust-futures-core" ,rust-futures-core-0.3)
+                       ("rust-futures-sink" ,rust-futures-sink-0.3)
+                       ("rust-nanorand" ,rust-nanorand-0.7)
+                       ("rust-spin" ,rust-spin-0.9))))
+    (home-page "https://github.com/zesterer/flume")
+    (synopsis "Fast multi-producer channel")
+    (description
+     "This package provides a fast multi-producer channel.")
+    (license (list license:asl2.0 license:expat))))
+
 (define-public rust-flume-0.10
   (package
+    (inherit rust-flume-0.11)
     (name "rust-flume")
     (version "0.10.14")
     (source
@@ -26942,7 +26967,6 @@ (define-public rust-flume-0.10
        (file-name (string-append name "-" version ".tar.gz"))
        (sha256
         (base32 "0xvm1wpzkjvf99jxy9jp3dxw5nipa9blg7j0ngvxj0rl3i2b8mqn"))))
-    (build-system cargo-build-system)
     (arguments
      `(#:cargo-inputs
        (("rust-futures-core" ,rust-futures-core-0.3)
@@ -26958,12 +26982,7 @@ (define-public rust-flume-0.10
         ("rust-futures" ,rust-futures-0.3)
         ("rust-rand" ,rust-rand-0.8)
         ("rust-tokio" ,rust-tokio-1)
-        ("rust-waker-fn" ,rust-waker-fn-1))))
-    (home-page "https://github.com/zesterer/flume")
-    (synopsis "Fast multi-producer channel")
-    (description
-     "This package provides a fast multi-producer channel.")
-    (license (list license:asl2.0 license:expat))))
+        ("rust-waker-fn" ,rust-waker-fn-1))))))
 
 (define-public rust-flume-0.9
   (package
-- 
2.41.0