Subject: [PATCH 015/120] gnu: Add rust-cap-primitives

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

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

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 18c268cb2a..785fd251b5 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -29740,6 +29740,36 @@ (define-public rust-arf-strings-0.7
     (license (list license:asl2.0  license:asl2.0 ;; LLVM exception
                    license:expat))))
 
+(define-public rust-cap-primitives-3
+  (package
+    (name "rust-cap-primitives")
+    (version "3.0.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "cap-primitives" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "1l2n7pk414gphv0mawjwnm6jr5x31gam6dx66m2siccnqx7v984h"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:skip-build? #t
+       #:cargo-inputs (("rust-ambient-authority" ,rust-ambient-authority-0.0.2)
+                       ("rust-arbitrary" ,rust-arbitrary-1)
+                       ("rust-fs-set-times" ,rust-fs-set-times-0.20)
+                       ("rust-io-extras" ,rust-io-extras-0.18)
+                       ("rust-io-lifetimes" ,rust-io-lifetimes-2)
+                       ("rust-ipnet" ,rust-ipnet-2)
+                       ("rust-maybe-owned" ,rust-maybe-owned-0.3)
+                       ("rust-rustix" ,rust-rustix-0.38)
+                       ("rust-windows-sys" ,rust-windows-sys-0.52)
+                       ("rust-winx" ,rust-winx-0.36))))
+    (home-page "https://github.com/bytecodealliance/cap-std")
+    (synopsis "Capability-based primitives")
+    (description "Capability-based primitives")
+    (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