[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
29/32: gnu: Add rust-async-mutex-1.
From: |
guix-commits |
Subject: |
29/32: gnu: Add rust-async-mutex-1. |
Date: |
Mon, 4 Jan 2021 13:33:12 -0500 (EST) |
ngz pushed a commit to branch master
in repository guix.
commit 6ede8a178d02284e279aaae257a93ab3b245138f
Author: Nicolas Goaziou <mail@nicolasgoaziou.fr>
AuthorDate: Mon Dec 21 09:48:03 2020 +0100
gnu: Add rust-async-mutex-1.
* gnu/packages/crates-io.scm (rust-async-mutex-1): New variable.
---
gnu/packages/crates-io.scm | 37 +++++++++++++++++++++++++++++++++++++
1 file changed, 37 insertions(+)
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 2b25b8a..09590ad 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -1491,6 +1491,43 @@ crate.")
(description "Macros for async-std.")
(license (list license:expat license:asl2.0))))
+(define-public rust-async-mutex-1
+ (package
+ (name "rust-async-mutex")
+ (version "1.4.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "async-mutex" version))
+ (file-name
+ (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32 "0vhmsscqx48dmxw0yir6az0pbwcq6qjvcv2f43vdpn95vd9bi7a7"))))
+ (build-system cargo-build-system)
+ (arguments
+ `(#:skip-build? #true ;XXX: enable when rust-async-std-1 is packaged
+ #:cargo-inputs
+ (("rust-event-listener" ,rust-event-listener-2))
+ #:cargo-development-inputs
+ (;("rust-async-std" ,rust-async-std-1)
+ ("rust-futures" ,rust-futures-0.3)
+ ("rust-futures-intrusive" ,rust-futures-intrusive-0.3)
+ ("rust-futures-lite" ,rust-futures-lite-1)
+ ("rust-smol" ,rust-smol-0.1)
+ ("rust-tokio" ,rust-tokio-0.2))))
+ (home-page "https://github.com/stjepang/async-lock")
+ (synopsis "Async synchronisation primitives")
+ (description "This crate provides the following async synchronisation
+primitives:
+
+@itemize
+@item Barrier: enables tasks to synchronize all together at the same time.
+@item Mutex: a mutual exclusion lock.
+@item RwLock: a reader-writer lock, allowing any number of readers or a single
writer.
+@item Semaphore: limits the number of concurrent operations.
+@end itemize")
+ (license (list license:asl2.0 license:expat))))
+
(define-public rust-async-net-1
(package
(name "rust-async-net")
- 21/32: gnu: Add rust-wepoll-sys-stjepang-1., (continued)
- 21/32: gnu: Add rust-wepoll-sys-stjepang-1., guix-commits, 2021/01/04
- 30/32: gnu: Add rust-async-process-1., guix-commits, 2021/01/04
- 18/32: gnu: Add rust-async-io-1 and rust-async-net-1., guix-commits, 2021/01/04
- 27/32: gnu: Add rust-smol-0.1., guix-commits, 2021/01/04
- 15/32: gnu: Add rust-flume-0.10., guix-commits, 2021/01/04
- 10/32: gnu: Add rust-nanorand-0.5., guix-commits, 2021/01/04
- 14/32: gnu: Add rust-uds-windows-0.1., guix-commits, 2021/01/04
- 16/32: gnu: Add rust-async-task-4., guix-commits, 2021/01/04
- 20/32: gnu: Add rust-async-global-executor-1., guix-commits, 2021/01/04
- 23/32: gnu: Add rust-futures-lite-0.1., guix-commits, 2021/01/04
- 29/32: gnu: Add rust-async-mutex-1.,
guix-commits <=
- 32/32: gnu: Add rust-gloo-timers-0.2., guix-commits, 2021/01/04
- 24/32: gnu: Add rust-blocking-0.4., guix-commits, 2021/01/04
- 25/32: gnu: Add rust-async-task-3., guix-commits, 2021/01/04
- 26/32: gnu: Add rust-piper-0.1., guix-commits, 2021/01/04
- 31/32: gnu: Add rust-crossbeam-utils-0.8., guix-commits, 2021/01/04
- 28/32: gnu: Add rust-futures-intrusive-0.3., guix-commits, 2021/01/04
- 17/32: gnu: Add rust-blocking-1., guix-commits, 2021/01/04
- 19/32: gnu: Add rust-async-executor-1., guix-commits, 2021/01/04