Subject: [bug#74743] [PATCH rust-team v2 25/68] gnu: rust-rand-pcg-0.9: New variable.

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

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

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

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 02aad0ed0f..61cdbdb4dc 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -62883,10 +62883,10 @@ (define-public rust-rand-os-0.1
         ("rust-wasm-bindgen" ,rust-wasm-bindgen-0.2)
         ("rust-winapi" ,rust-winapi-0.3))))))
 
-(define-public rust-rand-pcg-0.3
+(define-public rust-rand-pcg-0.9
   (package
     (name "rust-rand-pcg")
-    (version "0.3.1")
+    (version "0.9.0")
     (source
       (origin
         (method url-fetch)
@@ -62894,21 +62894,41 @@ (define-public rust-rand-pcg-0.3
         (file-name (string-append name "-" version ".tar.gz"))
         (sha256
          (base32
-          "0gn79wzs5b19iivybwa09wv4lhi4kbcqciasiqqynggnr8cd1jjr"))))
+          "1xr04g5zrzqi9n7vyzjznnyrmy55i8k34ripsb2gmdxazzvw72ml"))))
     (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_pcg")
+       (("rust-bincode" ,rust-bincode-1)
+        ("rust-rand-core" ,rust-rand-core-0.9))))
+    (home-page "https://rust-random.github.io/book")
     (synopsis
      "Selected PCG random number generators")
     (description
      "This package implements a selection of PCG random number generators.")
-    (license (list license:asl2.0
-                   license:expat))))
+    (license (list license:asl2.0 license:expat))))
+
+(define-public rust-rand-pcg-0.3
+  (package
+    (inherit rust-rand-pcg-0.9)
+    (name "rust-rand-pcg")
+    (version "0.3.1")
+    (source
+      (origin
+        (method url-fetch)
+        (uri (crate-uri "rand_pcg" version))
+        (file-name (string-append name "-" version ".tar.gz"))
+        (sha256
+         (base32
+          "0gn79wzs5b19iivybwa09wv4lhi4kbcqciasiqqynggnr8cd1jjr"))))
+    (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-pcg-0.2
   (package
-- 
2.48.1