summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZheng junjie <873216071@qq.com>2021-06-11 20:53:07 +0800
committerNicolas Goaziou <mail@nicolasgoaziou.fr>2021-06-13 19:14:07 +0200
commitb59e785e3ce2f75ac8e4e656d99dd8429dc90e91 (patch)
treedb8e9f93fec3697740e516c82910a0fb337acc91
parent78387d46725992b905d372eebd10e591ee3d9d6a (diff)
gnu: Add rust-jod-thread-0.1.
* gnu/packages/crates-io.scm (rust-jod-thread-0.1): New variable. Signed-off-by: Nicolas Goaziou <mail@nicolasgoaziou.fr>
-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 67217e3f11..165fe70c34 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -22176,6 +22176,30 @@ the jni-bindgen code generator for binding to JVM APIs from Rust.")
"An implementation of the GNU make jobserver for Rust.")
(license (list license:expat license:asl2.0))))
+(define-public rust-jod-thread-0.1
+ (package
+ (name "rust-jod-thread")
+ (version "0.1.2")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "jod-thread" version))
+ (file-name
+ (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32
+ "1bj7g6l59ybcf33znf80ccqbxvs1cmd8ynd4m8h7ywdqk473c8wb"))))
+ (build-system cargo-build-system)
+ (arguments `(#:skip-build? #t))
+ (home-page
+ "https://github.com/matklad/jod-thread")
+ (synopsis
+ "Thin wrapper around @code{std::thread} which joins on drop by default")
+ (description
+ "Join On Drop thread (jod_thread) is a thin wrapper around
+@code{std::thread}, which makes sure that by default all threads are joined.")
+ (license (list license:expat license:asl2.0))))
+
(define-public rust-jsonrpc-core-14
(package
(name "rust-jsonrpc-core")