Subject: [PATCH rust-team v2 23/68] gnu: rust-rand-core-0.9: New variable.

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

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

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

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 655f6a7f0f..c76600ebc7 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -62466,24 +62466,21 @@ (define-public rust-rand-chacha-0.1
        #:cargo-development-inputs
        (("rust-autocfg" ,rust-autocfg-0.1))))))
 
-(define-public rust-rand-core-0.6
+(define-public rust-rand-core-0.9
   (package
     (name "rust-rand-core")
-    (version "0.6.4")
+    (version "0.9.3")
     (source
      (origin
        (method url-fetch)
        (uri (crate-uri "rand_core" version))
        (file-name (string-append name "-" version ".tar.gz"))
        (sha256
-        (base32 "0b4j2v4cb5krak1pv6kakv4sz6xcwbrmy2zckc32hsigbrwy82zc"))))
+        (base32 "0f3xhf16yks5ic6kmgxcpv1ngdhp48mmfy4ag82i1wnwh8ws3ncr"))))
     (build-system cargo-build-system)
     (arguments
-     `(#:cargo-test-flags '("--"
-                            ;; Skip broken test/deny(dead_code) lint
-                            "--skip=src/lib.rs - SeedableRng::Seed (line 265)")
-       #:cargo-inputs
-       (("rust-getrandom" ,rust-getrandom-0.2)
+     `(#:cargo-inputs
+       (("rust-getrandom" ,rust-getrandom-0.3)
         ("rust-serde" ,rust-serde-1))))
     (home-page "https://rust-random.github.io/book")
     (synopsis "Core random number generator traits and tools")
@@ -62492,6 +62489,26 @@ (define-public rust-rand-core-0.6
 tools for implementation.")
     (license (list license:expat license:asl2.0))))
 
+(define-public rust-rand-core-0.6
+  (package
+    (inherit rust-rand-core-0.9)
+    (name "rust-rand-core")
+    (version "0.6.4")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "rand_core" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "0b4j2v4cb5krak1pv6kakv4sz6xcwbrmy2zckc32hsigbrwy82zc"))))
+    (arguments
+     `(#:cargo-test-flags '("--"
+                            ;; Skip broken test/deny(dead_code) lint
+                            "--skip=src/lib.rs - SeedableRng::Seed (line 265)")
+       #:cargo-inputs
+       (("rust-getrandom" ,rust-getrandom-0.2)
+        ("rust-serde" ,rust-serde-1))))))
+
 (define-public rust-rand-core-0.5
   (package
     (inherit rust-rand-core-0.6)
-- 
2.48.1