Subject: [PATCH 122/147] gnu: Add rust-cap-net-ext-2.

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

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

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

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index a1ea0c8bcc..cbaffc1f7e 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -9612,6 +9612,30 @@ (define-public rust-cap-fs-ext-2
 cap-std's file-system module.")
     (license (list license:asl2.0 license:expat)))) ;; With LLVM exception.
 
+(define-public rust-cap-net-ext-2
+  (package
+    (name "rust-cap-net-ext")
+    (version "2.0.1")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "cap-net-ext" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "1adpbanxbs9rzajp4s7liqrxpmzn7yz9l0q4887my19kcpz6hha3"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:skip-build? #t
+       #:cargo-inputs (("rust-cap-primitives" ,rust-cap-primitives-2)
+                       ("rust-cap-std" ,rust-cap-std-2)
+                       ("rust-rustix" ,rust-rustix-0.38)
+                       ("rust-smallvec" ,rust-smallvec-1))))
+    (home-page "https://github.com/bytecodealliance/cap-std")
+    (synopsis "Extension traits for networking APIs")
+    (description "This packag provides a library with extension traits for:
+@code{TcpListener}, @code{Pool}, etc.")
+    (license (list license:asl2.0 license:expat)))) ;; With LLVM exception.
+
 (define-public rust-cap-primitives-2
   (package
     (name "rust-cap-primitives")
-- 
2.41.0