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

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

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

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

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 72c13c38ad..1f399d2314 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -62403,31 +62403,52 @@ (define-public rust-rand-0.3
        (("rust-libc" ,rust-libc-0.2)
         ("rust-rand" ,rust-rand-0.4))))))
 
-(define-public rust-rand-chacha-0.3
+(define-public rust-rand-chacha-0.9
   (package
     (name "rust-rand-chacha")
-    (version "0.3.1")
+    (version "0.9.0")
     (source
      (origin
        (method url-fetch)
        (uri (crate-uri "rand_chacha" version))
        (file-name (string-append name "-" version ".tar.gz"))
        (sha256
-        (base32 "123x2adin558xbhvqb8w4f6syjsdkmqff8cxwhmjacpsl1ihmhg6"))))
+        (base32 "1jr5ygix7r60pz0s1cv3ms1f6pd1i9pcdmnxzzhjc3zn3mgjn0nk"))))
     (build-system cargo-build-system)
     (arguments
      `(#:cargo-inputs
        (("rust-ppv-lite86" ,rust-ppv-lite86-0.2)
-        ("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-serde-json" ,rust-serde-json-1))))
-    (home-page "https://crates.io/crates/rand_chacha")
+       (("rust-rand-core" ,rust-rand-core-0.9)
+        ("rust-serde-json" ,rust-serde-json-1))))
+    (home-page "rust-random.github.io/book")
     (synopsis "ChaCha random number generator")
     (description
      "This package provides the ChaCha random number generator.")
     (license (list license:expat license:asl2.0))))
 
+(define-public rust-rand-chacha-0.3
+  (package
+    (inherit rust-rand-chacha-0.9)
+    (name "rust-rand-chacha")
+    (version "0.3.1")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "rand_chacha" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "123x2adin558xbhvqb8w4f6syjsdkmqff8cxwhmjacpsl1ihmhg6"))))
+    (arguments
+     `(#:cargo-inputs
+       (("rust-ppv-lite86" ,rust-ppv-lite86-0.2)
+        ("rust-rand-core" ,rust-rand-core-0.6)
+        ("rust-serde" ,rust-serde-1))
+       #:cargo-development-inputs
+       (("rust-serde-json" ,rust-serde-json-1))))))
+
 (define-public rust-rand-chacha-0.2
   (package
     (inherit rust-rand-chacha-0.3)
-- 
2.48.1