guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

79/276: gnu: Add rust-fastrand-2.


From: guix-commits
Subject: 79/276: gnu: Add rust-fastrand-2.
Date: Wed, 18 Oct 2023 04:49:23 -0400 (EDT)

efraim pushed a commit to branch rust-team
in repository guix.

commit 680c7b0ccdb1e58ca9e010bd96f509f8bee88383
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Sun Oct 1 21:07:20 2023 +0300

    gnu: Add rust-fastrand-2.
    
    * gnu/packages/crates-io.scm (rust-fastrand-2): New variable.
    (rust-fastrand-1): Inherit from rust-fastrand-2.
---
 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 3fc716f30f..86bbc1fddd 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -24036,33 +24036,54 @@ floats.")
     (description "This package provides a parser for fastq files.")
     (license license:expat)))
 
-(define-public rust-fastrand-1
+(define-public rust-fastrand-2
   (package
     (name "rust-fastrand")
-    (version "1.9.0")
+    (version "2.0.1")
     (source
      (origin
        (method url-fetch)
        (uri (crate-uri "fastrand" version))
        (file-name (string-append name "-" version ".tar.gz"))
        (sha256
-        (base32 "1gh12m56265ihdbzh46bhh0jf74i197wm51jg1cw75q7ggi96475"))))
+        (base32 "19flpv5zbzpf0rk4x77z4zf25in0brg8l7m304d3yrf47qvwxjr5"))))
     (build-system cargo-build-system)
     (arguments
      `(#:cargo-inputs
-       (("rust-instant" ,rust-instant-0.1))
+       (("rust-getrandom" ,rust-getrandom-0.2))
        #:cargo-development-inputs
        (("rust-getrandom" ,rust-getrandom-0.2)
-        ("rust-instant" ,rust-instant-0.1)
         ("rust-rand" ,rust-rand-0.8)
         ("rust-wasm-bindgen-test" ,rust-wasm-bindgen-test-0.3)
         ("rust-wyhash" ,rust-wyhash-0.5))))
-    (home-page "https://github.com/stjepang/fastrand";)
+    (home-page "https://github.com/smol-rs/fastrand";)
     (synopsis "Simple and fast random number generator")
     (description
      "This package provides a simple and fast random number generator.")
     (license (list license:asl2.0 license:expat))))
 
+(define-public rust-fastrand-1
+  (package
+    (inherit rust-fastrand-2)
+    (name "rust-fastrand")
+    (version "1.9.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "fastrand" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "1gh12m56265ihdbzh46bhh0jf74i197wm51jg1cw75q7ggi96475"))))
+    (arguments
+     `(#:cargo-inputs
+       (("rust-instant" ,rust-instant-0.1))
+       #:cargo-development-inputs
+       (("rust-getrandom" ,rust-getrandom-0.2)
+        ("rust-instant" ,rust-instant-0.1)
+        ("rust-rand" ,rust-rand-0.8)
+        ("rust-wasm-bindgen-test" ,rust-wasm-bindgen-test-0.3)
+        ("rust-wyhash" ,rust-wyhash-0.5))))))
+
 (define-public rust-fat-macho-0.4
   (package
     (name "rust-fat-macho")



reply via email to

[Prev in Thread] Current Thread [Next in Thread]