Subject: [bug#69257] [PATCH 122/228] gnu: Add rust-deadpool-0.9.

From: Herman Rimm <[email-masked]>
Date: Sun, 18 Feb 2024 22:08:12 +0100

* gnu/packages/crates-io.scm (rust-deadpool-0.9): Add variable.
(rust-deadpool-0.7): Inherit from rust-deadpool-0.9.

Change-Id: I8aee483f5a9e8e7d0a1c11c1452809a957b40e72
---
 gnu/packages/crates-io.scm | 41 ++++++++++++++++++++++++++++++--------
 1 file changed, 33 insertions(+), 8 deletions(-)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 7b060ddf51..b18058485c 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -17877,8 +17877,40 @@ (define-public rust-dbus-tree-0.9
      "This crate is a framework for writing D-Bus method handlers (legacy).")
     (license (list license:asl2.0 license:expat))))
 
+(define-public rust-deadpool-0.9
+  (package
+    (name "rust-deadpool")
+    (version "0.9.5")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "deadpool" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "0vl5qg5pfx0c9c41g299clfdgz9la6z8361aycb21cia1zwy07s2"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-inputs (("rust-async-trait" ,rust-async-trait-0.1)
+                       ("rust-deadpool-runtime" ,rust-deadpool-runtime-0.1)
+                       ("rust-num-cpus" ,rust-num-cpus-1)
+                       ("rust-retain-mut" ,rust-retain-mut-0.1)
+                       ("rust-serde" ,rust-serde-1)
+                       ("rust-tokio" ,rust-tokio-1))
+       #:cargo-development-inputs (("rust-async-std" ,rust-async-std-1)
+                                   ("rust-config" ,rust-config-0.13)
+                                   ("rust-criterion" ,rust-criterion-0.3)
+                                   ("rust-itertools" ,rust-itertools-0.10)
+                                   ("rust-tokio" ,rust-tokio-1))))
+    (home-page "https://github.com/bikeshedder/deadpool")
+    (synopsis "Dead simple async pool")
+    (description
+     "Deadpool is a dead simple async pool for connections and objects
+of any type.")
+    (license (list license:expat license:asl2.0))))
+
 (define-public rust-deadpool-0.7
   (package
+    (inherit rust-deadpool-0.9)
     (name "rust-deadpool")
     (version "0.7.0")
     (source
@@ -17888,7 +17920,6 @@ (define-public rust-deadpool-0.7
        (file-name (string-append name "-" version ".tar.gz"))
        (sha256
         (base32 "0vb18xvhmyg6gvvq5vrcqmy4x26ryrmkqpsgwmb4bvkav1wn24ix"))))
-    (build-system cargo-build-system)
     (arguments
      `(#:skip-build? #t
        #:cargo-inputs
@@ -17897,13 +17928,7 @@ (define-public rust-deadpool-0.7
         ("rust-crossbeam-queue" ,rust-crossbeam-queue-0.3)
         ("rust-num-cpus" ,rust-num-cpus-1)
         ("rust-serde" ,rust-serde-1)
-        ("rust-tokio" ,rust-tokio-1))))
-    (home-page "https://github.com/bikeshedder/deadpool")
-    (synopsis "Dead simple async pool")
-    (description
-     "Deadpool is a dead simple async pool for connections and objects of any
-type.")
-    (license (list license:expat license:asl2.0))))
+        ("rust-tokio" ,rust-tokio-1))))))
 
 (define-public rust-deadpool-runtime-0.1
   (package
-- 
2.41.0