Subject: [bug#74743] [PATCH rust-team v2 24/68] gnu: rust-rand-xorshift-0.4: New variable.

From: Aaron Covrig <[email-masked]>
Date: Tue, 18 Mar 2025 21:18:42 -0400

* gnu/packages/crates-io.scm (rust-rand-xorshift-0.4): New variable.

Signed-off-by: Aaron Covrig <[email-masked]>
---
 gnu/packages/crates-io.scm | 31 ++++++++++++++++++++++++++-----
 1 file changed, 26 insertions(+), 5 deletions(-)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index c76600ebc7..02aad0ed0f 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -62985,10 +62985,10 @@ (define-public rust-rand-regex-0.15
     (description "Generates random strings and byte strings matching a regex.")
     (license license:expat)))
 
-(define-public rust-rand-xorshift-0.3
+(define-public rust-rand-xorshift-0.4
   (package
     (name "rust-rand-xorshift")
-    (version "0.3.0")
+    (version "0.4.0")
     (source
      (origin
        (method url-fetch)
@@ -62997,20 +62997,41 @@ (define-public rust-rand-xorshift-0.3
         (string-append name "-" version ".tar.gz"))
        (sha256
         (base32
-         "13vcag7gmqspzyabfl1gr9ykvxd2142q2agrj8dkyjmfqmgg4nyj"))))
+         "0njsn25pis742gb6b89cpq7jp48v9n23a9fvks10yczwks8n4fai"))))
     (build-system cargo-build-system)
     (arguments
      `(#:cargo-inputs
-       (("rust-rand-core" ,rust-rand-core-0.6)
+       (("rust-rand-core" ,rust-rand-core-0.9)
         ("rust-serde" ,rust-serde-1))
        #:cargo-development-inputs
        (("rust-bincode" ,rust-bincode-1))))
-    (home-page "https://crates.io/crates/rand-xorshift")
+    (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))))
 
+(define-public rust-rand-xorshift-0.3
+  (package
+    (inherit rust-rand-xorshift-0.4)
+    (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"))))
+    (arguments
+     `(#:cargo-inputs
+       (("rust-rand-core" ,rust-rand-core-0.6)
+        ("rust-serde" ,rust-serde-1))
+       #:cargo-development-inputs
+       (("rust-bincode" ,rust-bincode-1))))))
+
 (define-public rust-rand-xorshift-0.2
   (package
     (inherit rust-rand-xorshift-0.3)
-- 
2.48.1