guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

31/68: gnu: Add rust-deadpool-0.9.


From: guix-commits
Subject: 31/68: gnu: Add rust-deadpool-0.9.
Date: Wed, 20 Mar 2024 11:24:32 -0400 (EDT)

efraim pushed a commit to branch rust-team
in repository guix.

commit dc310a7d73f7594f10176e8a1d0b754f4bc03518
Author: Herman Rimm <herman@rimm.ee>
AuthorDate: Sun Feb 18 22:08:12 2024 +0100

    gnu: Add rust-deadpool-0.9.
    
    * gnu/packages/crates-io.scm (rust-deadpool-0.9): Add variable.
    (rust-deadpool-0.7): Inherit from rust-deadpool-0.9.
    
    Change-Id: I8aee483f5a9e8e7d0a1c11c1452809a957b40e72
    Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
---
 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 0919ab61cf..55fd468246 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -18840,8 +18840,40 @@ sizes.  Big-endian order is used.  WARNING: Block must 
be aligned!")
      "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
@@ -18851,7 +18883,6 @@ sizes.  Big-endian order is used.  WARNING: Block must 
be aligned!")
        (file-name (string-append name "-" version ".tar.gz"))
        (sha256
         (base32 "0vb18xvhmyg6gvvq5vrcqmy4x26ryrmkqpsgwmb4bvkav1wn24ix"))))
-    (build-system cargo-build-system)
     (arguments
      `(#:skip-build? #t
        #:cargo-inputs
@@ -18860,13 +18891,7 @@ sizes.  Big-endian order is used.  WARNING: Block must 
be aligned!")
         ("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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]