* gnu/packages/rust.scm (rust-net2): New variable.
---
 gnu/packages/rust.scm | 26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)

diff --git a/gnu/packages/rust.scm b/gnu/packages/rust.scm
index 365ab4ed4..ac5272d32 100644
--- a/gnu/packages/rust.scm
+++ b/gnu/packages/rust.scm
@@ -705,3 +705,29 @@ storage.")
 on a large number of @code{#[cfg]} parameters.  Structured like an
 if-else chain, the first matching branch is the item that gets emitted.")
     (license (list license:expat license:asl2.0))))
+
+(define-public rust-net2
+  (package
+    (name "rust-net2")
+    (version "0.2.26")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "net2" version))
+       (file-name
+        (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32
+         "1qp3q6xynb481rsp3ig1nmqb6qlxfba3shfrmqij88cppsv9rpsy"))))
+    (build-system cargo-build-system)
+    (inputs
+     `(("rust-cfg-if" ,rust-cfg-if "src")
+       ("rust-libc" ,rust-libc "src")))
+    (home-page "https://github.com/rust-lang-nursery/net2-rs";)
+    (synopsis "Extensions to the standard library's networking types")
+    (description
+     "Extensions to the standard library's networking types
+as proposed in RFC 1158.  They expand the surface area of @code{std::net}
+to bind more low-level interfaces and provide more advanced customization
+and configuration of sockets.")
+    (license (list license:expat license:asl2.0))))
-- 
2.11.0


Reply via email to