guix-commits
[Top][All Lists]
Advanced

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

38/156: gnu: Add rust-piper-0.2.


From: guix-commits
Subject: 38/156: gnu: Add rust-piper-0.2.
Date: Tue, 24 Oct 2023 08:52:11 -0400 (EDT)

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

commit 642623da8bee7bdfb0d0c424cbeea412770ee74e
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Tue Oct 24 08:47:03 2023 +0300

    gnu: Add rust-piper-0.2.
    
    * gnu/packages/crates-io.scm (rust-piper-0.2): New variable.
    (rust-piper-0.1): Inherit from rust-piper-0.2.
    
    Change-Id: I031dafb2dd3c06574f8e98221080b9a95aa520b7
---
 gnu/packages/crates-io.scm | 41 ++++++++++++++++++++++++++++++++++-------
 1 file changed, 34 insertions(+), 7 deletions(-)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 25035f4e5c..eade3aec6c 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -51377,8 +51377,41 @@ provides comprehensive coverage of that portion of the 
specification
 along with strong support for variations and the core header tables.")
     (license (list license:expat license:asl2.0))))
 
+(define-public rust-piper-0.2
+  (package
+    (name "rust-piper")
+    (version "0.2.1")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "piper" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "1m45fkdq7q5l9mv3b0ra10qwm0kb67rjp2q8y91958gbqjqk33b6"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-inputs
+       (("rust-atomic-waker" ,rust-atomic-waker-1)
+        ("rust-fastrand" ,rust-fastrand-2)
+        ("rust-futures-io" ,rust-futures-io-0.3)
+        ("rust-portable-atomic" ,rust-portable-atomic-1)
+        ("rust-portable-atomic-util" ,rust-portable-atomic-util-0.1))
+       #:cargo-development-inputs
+       (("rust-async-channel" ,rust-async-channel-1)
+        ("rust-async-executor" ,rust-async-executor-1)
+        ("rust-async-io" ,rust-async-io-1)
+        ("rust-criterion" ,rust-criterion-0.4)
+        ("rust-easy-parallel" ,rust-easy-parallel-3)
+        ("rust-futures-lite" ,rust-futures-lite-1))))
+    (home-page "https://github.com/smol-rs/piper";)
+    (synopsis "Async pipes, channels, mutexes, and more")
+    (description
+     "This crate provides async pipes, channels, mutexes, and more.")
+    (license (list license:expat license:asl2.0))))
+
 (define-public rust-piper-0.1
   (package
+    (inherit rust-piper-0.2)
     (name "rust-piper")
     (version "0.1.3")
     (source
@@ -51388,7 +51421,6 @@ along with strong support for variations and the core 
header tables.")
        (file-name (string-append name "-" version ".tar.gz"))
        (sha256
         (base32 "062zdv9w7l5037g113bh7r72wmygz92ajzr0z41v3bqdd3x8nq01"))))
-    (build-system cargo-build-system)
     (arguments
      `(#:tests? #false
        #:cargo-inputs
@@ -51397,12 +51429,7 @@ along with strong support for variations and the core 
header tables.")
         ("rust-futures-sink" ,rust-futures-sink-0.3)
         ("rust-futures-util" ,rust-futures-util-0.3))
        #:cargo-development-inputs
-       (("rust-futures" ,rust-futures-0.3))))
-    (home-page "https://crates.io/crates/piper";)
-    (synopsis "Async pipes, channels, mutexes, and more")
-    (description
-     "This crate provides async pipes, channels, mutexes, and more.")
-    (license (list license:expat license:asl2.0))))
+       (("rust-futures" ,rust-futures-0.3))))))
 
 (define-public rust-pkcs1-0.7
   (package



reply via email to

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