diff mbox series

[bug#47948,47/49] gnu: Add rust-loom.

Message ID 20210422102208.1154-47-dannym@scratchpost.org
State New
Headers show
Series [bug#47948,01/49] gnu: rust-byteorder: Update to 1.4.3. | expand

Commit Message

Danny Milosavljevic April 22, 2021, 10:22 a.m. UTC
* gnu/packages/crates-io.scm (rust-loom-0.5): New variable.
---
 gnu/packages/crates-io.scm | 31 +++++++++++++++++++++++++++++++
 1 file changed, 31 insertions(+)
diff mbox series

Patch

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index c120c55d8b..86cc797b01 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -51401,3 +51401,34 @@  configuration file and/or environment variables.")
     (description
       "Stackfull Generator Library in Rust")
     (license (list license:expat license:asl2.0))))
+
+(define-public rust-loom-0.5
+  (package
+    (name "rust-loom")
+    (version "0.5.0")
+    (source
+      (origin
+        (method url-fetch)
+        (uri (crate-uri "loom" version))
+        (file-name
+          (string-append name "-" version ".tar.gz"))
+        (sha256
+          (base32
+            "1fl2yg1imnpa4aipdlf9zjqh2ssy6hhfmm3dkd0z59azqj6k99bs"))))
+    (build-system cargo-build-system)
+    (arguments
+      `(#:skip-build?
+        #t
+        #:cargo-inputs
+        (("rust-cfg-if" ,rust-cfg-if-1)
+         ("rust-generator" ,rust-generator-0.7)
+         ("rust-pin-utils" ,rust-pin-utils-0.1)
+         ("rust-scoped-tls" ,rust-scoped-tls-1)
+         ("rust-serde" ,rust-serde-1)
+         ("rust-serde-json" ,rust-serde-json-1))))
+    (home-page "https://github.com/tokio-rs/loom")
+    (synopsis
+      "Permutation testing for concurrent code")
+    (description
+      "Permutation testing for concurrent code")
+    (license license:expat)))