Subject: [bug#47948] [PATCH 43/49] gnu: Add rust-rand-xorshift.

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

* gnu/packages/crates-io.scm (rust-rand-xorshift-0.3): New variable.
---
 gnu/packages/crates-io.scm | 28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 8bbb70c97f..7c08df7554 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -51277,3 +51277,31 @@ configuration file and/or environment variables.")
     (synopsis "Ecmascript")
     (description "Ecmascript")
     (license (list license:asl2.0 license:expat))))
+
+(define-public rust-rand-xorshift-0.3
+  (package
+    (name "rust-rand-xorshift")
+    (version "0.3.0")
+    (source
+      (origin
+        (method url-fetch)
+        (uri (crate-uri "rand_xorshift" version))
+        (file-name
+          (string-append name "-" version ".tar.gz"))
+        (sha256
+          (base32
+            "13vcag7gmqspzyabfl1gr9ykvxd2142q2agrj8dkyjmfqmgg4nyj"))))
+    (build-system cargo-build-system)
+    (arguments
+      `(#:skip-build?
+        #t
+        #:cargo-inputs
+        (("rust-rand-core" ,rust-rand-core-0.6)
+         ("rust-serde" ,rust-serde-1))))
+    (home-page "https://rust-random.github.io/book")
+    (synopsis "Xorshift random number generator
+")
+    (description
+      "Xorshift random number generator
+")
+    (license (list license:expat license:asl2.0))))
-- 
2.29.2