summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEfraim Flashner <efraim@flashner.co.il>2019-09-05 18:41:02 +0300
committerEfraim Flashner <efraim@flashner.co.il>2019-09-06 15:46:02 +0300
commitfbf37a7bff9a946fa93acf9131b423c2a3a8fbb1 (patch)
treee76c90ba15df0d1a6cca7f0c771c0391b6bf471d
parent3494be351567e1f32a02bbb3d2f7cedec7d6446c (diff)
gnu: Add rust-socket2.
* gnu/packages/crates-io.scm (rust-socket2): New variable.
-rw-r--r--gnu/packages/crates-io.scm30
1 files changed, 30 insertions, 0 deletions
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 4de42d9de4..2b31ec3c66 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -2543,6 +2543,36 @@ words, like Python's shlex.")
data type.")
(license license:expat)))
+(define-public rust-socket2
+ (package
+ (name "rust-socket2")
+ (version "0.3.11")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "socket2" version))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32
+ "11bdcz04i106g4q7swkll0qxrb4287srqd2k3aq2q6i22zjlvdz8"))))
+ (build-system cargo-build-system)
+ (arguments
+ `(#:cargo-inputs
+ (("rust-cfg-if" ,rust-cfg-if)
+ ("rust-libc" ,rust-libc)
+ ("rust-redox-syscall" ,rust-redox-syscall)
+ ("rust-winapi" ,rust-winapi))
+ #:cargo-development-inputs
+ (("rust-tempdir" ,rust-tempdir))
+ #:tests? #f)) ; Tests expect network connectivity.
+ (home-page "https://github.com/alexcrichton/socket2-rs")
+ (synopsis "Networking sockets in Rust")
+ (description
+ "This package provides utilities for handling networking sockets with a
+maximal amount of configuration possible intended.")
+ (license (list license:asl2.0
+ license:expat))))
+
(define-public rust-spin
(package
(name "rust-spin")