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

From: Danny Milosavljevic <[email-masked]>
Date: Thu, 22 Apr 2021 12:22:06 +0200

* gnu/packages/crates-io.scm (rust-loom-0.5): New variable.
---
 gnu/packages/crates-io.scm | 31 +++++++++++++++++++++++++++++++
 1 file changed, 31 insertions(+)

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)))
-- 
2.29.2