Subject: [PATCH 017/120] gnu: Add rust-cap-rand

From: zenmaya <[email-masked]>
Date: Thu, 4 Apr 2024 08:07:31 +0200

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

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 78ccca14ba..8eb2cc48e7 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -29798,6 +29798,28 @@ (define-public rust-cap-time-ext-3
     (license (list license:asl2.0  license:asl2.0 ;; LLVM exception
                    license:expat))))
 
+(define-public rust-cap-rand-3
+  (package
+    (name "rust-cap-rand")
+    (version "3.0.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "cap-rand" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "0s6y8d86lv1wd3gkv8r8qwqvmhrjiy6f2jn50fxrjfn3ma6z09s3"))))
+    (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 "Capability-based random number generators")
+    (license (list license:asl2.0  license:asl2.0 ;; LLVM exception
+                   license:expat))))
+
 (define-public rust-idea-0.5
   (package
     (name "rust-idea")
-- 
2.41.0