summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Goaziou <mail@nicolasgoaziou.fr>2020-12-20 13:17:37 +0100
committerNicolas Goaziou <mail@nicolasgoaziou.fr>2021-01-03 22:06:36 +0100
commitd194a3375ef002eb795df74c2c444335ab1ce0b3 (patch)
tree8d13a33dcac0388b320ee36666c21945b0755fd2
parent316e4ab6788daefb49364cee99c6b4fbe88af986 (diff)
gnu: Add rust-event-listener-2.
* gnu/packages/crates-io.scm (rust-event-listener-2): New variable.
-rw-r--r--gnu/packages/crates-io.scm24
1 files changed, 24 insertions, 0 deletions
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 859ee2b29c..9516710ea3 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -9373,6 +9373,30 @@ variables.")
(("rust-serde" ,rust-serde-1)
("rust-serde-json" ,rust-serde-json-1))))))
+(define-public rust-event-listener-2
+ (package
+ (name "rust-event-listener")
+ (version "2.5.1")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "event-listener" version))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32 "0ndyp41pb2cx7gxijqh4ymnc47nyrvhvir7rvjlw6x09ayb10lzp"))))
+ (build-system cargo-build-system)
+ (arguments
+ `(#:cargo-development-inputs
+ (("rust-futures" ,rust-futures-0.3)
+ ("rust-waker-fn" ,rust-waker-fn-1))))
+ (home-page "https://github.com/stjepang/event-listener")
+ (synopsis "Notify async tasks or threads")
+ (description
+ "This is a synchronization primitive similar to @code{eventcounts}.
+You can use this crate to turn non-blocking data structures into async or
+blocking data structures.")
+ (license (list license:asl2.0 license:expat))))
+
(define-public rust-exitfailure-0.5
(package
(name "rust-exitfailure")