summary refs log tree commit diff
diff options
context:
space:
mode:
authorNicolas Goaziou <mail@nicolasgoaziou.fr>2020-12-20 12:51:26 +0100
committerNicolas Goaziou <mail@nicolasgoaziou.fr>2021-01-03 22:06:34 +0100
commitb5d659110cc209eab86c77fe752357aa68425d70 (patch)
tree742ae39025a8622ac5826f3e52e4f3fbc3e804c9
parent2e08ae8a5606a1e919620c52f2391d90dbdaf4df (diff)
downloadguix-b5d659110cc209eab86c77fe752357aa68425d70.tar.gz
gnu: Add rust-easy-parallel-3.
* gnu/packages/crates-io.scm (rust-easy-parallel-3): New variable.
-rw-r--r--gnu/packages/crates-io.scm20
1 files changed, 20 insertions, 0 deletions
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index f9a1fbe9bc..5fd5f202e8 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -8450,6 +8450,26 @@ floating-point primitives to an @code{io::Write}.")
      "This package provides lightweight binding to DirectWrite.")
     (license license:mpl2.0)))
 
+(define-public rust-easy-parallel-3
+  (package
+    (name "rust-easy-parallel")
+    (version "3.1.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "easy-parallel" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "1x28z540fc4g8fqm1sbpqbpdfbi40mkas4xr57s3yn0jjbbszm0x"))))
+    (build-system cargo-build-system)
+    (home-page "https://github.com/stjepang/easy-parallel")
+    (synopsis "Run closures in parallel")
+    (description
+     "This crate provides a simple primitive for spawning threads in bulk and
+waiting for them to complete.  Threads are allowed to borrow local variables
+from the main thread.")
+    (license (list license:asl2.0 license:expat))))
+
 (define-public rust-ed25519-1
   (package
     (name "rust-ed25519")