Subject: [PATCH 105/147] gnu: Add rust-cap-rand-2.

From: Jean-Pierre De Jesus DIAZ <[email-masked]>
Date: Tue, 2 Apr 2024 18:04:57 +0200

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

Change-Id: If742e2c319e4e7b174fd705ada569a31a79248c1
---
 gnu/packages/crates-io.scm | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 14960b09ca..9796aca96e 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -9643,6 +9643,29 @@ (define-public rust-cap-primitives-2
 @code{cap-std} crate. ")
     (license (list license:asl2.0 license:expat)))) ;; With LLVM exception.
 
+(define-public rust-cap-rand-2
+  (package
+    (name "rust-cap-rand")
+    (version "2.0.1")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "cap-rand" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "1jm4iw7jlricrpi0ngmp5dvhwm4p6lr70w9wph373kghcmankr90"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:skip-build? #t
+       #:cargo-inputs
+       (("rust-ambient-authority" ,rust-ambient-authority-0.0.2)
+        ("rust-rand" ,rust-rand-0.8))))
+    (home-page "https://github.com/bytecodealliance/cap-std")
+    (synopsis "Capability-based random number generators")
+    (description "This package provides a library for capability-based random
+number generators.")
+    (license (list license:asl2.0 license:expat)))) ;; With LLVM exception.
+
 (define-public rust-cap-std-2
   (package
     (name "rust-cap-std")
-- 
2.41.0