summaryrefslogtreecommitdiff
path: root/gnu/packages/crates-io.scm
diff options
context:
space:
mode:
authorDomagoj Stolfa <domagoj.stolfa@gmail.com>2021-07-11 15:55:52 +0100
committerEfraim Flashner <efraim@flashner.co.il>2021-07-13 15:14:16 +0300
commit43dca3927566524b400056a1360ce7fa2044724e (patch)
treecaf2a3f93157626b0d3c50fdabe17f72da5b1940 /gnu/packages/crates-io.scm
parent0b7ddcf650f532a18d0ad951812c2b44a166cd14 (diff)
gnu: Add rust-socket2-0.4.
* gnu/packages/crates-io.scm (rust-socket2-0.4): New variable. (rust-socket2-0.3): Inherit from rust-socket2-0.4. Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
Diffstat (limited to 'gnu/packages/crates-io.scm')
-rw-r--r--gnu/packages/crates-io.scm38
1 files changed, 29 insertions, 9 deletions
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 3c1fe205d1..60f0180293 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -43519,8 +43519,36 @@ escaped text to recover the original string.")
algorithm. Includes streaming compression and decompression.")
(license license:bsd-3)))
+(define-public rust-socket2-0.4
+ (package
+ (name "rust-socket2")
+ (version "0.4.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "socket2" version))
+ (file-name
+ (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32
+ "18ny6m1gnf6cwp5ax0b5hr36w6yg16z7faj76b31aq2jghhgqgcy"))))
+ (build-system cargo-build-system)
+ (arguments
+ `(#:rust ,rust-1.46 ; or later
+ #:cargo-inputs
+ (("rust-libc" ,rust-libc-0.2)
+ ("rust-winapi" ,rust-winapi-0.3))))
+ (home-page "https://github.com/rust-lang/socket2")
+ (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-socket2-0.3
(package
+ (inherit rust-socket2-0.4)
(name "rust-socket2")
(version "0.3.19")
(source
@@ -43530,7 +43558,6 @@ algorithm. Includes streaming compression and decompression.")
(file-name (string-append name "-" version ".crate"))
(sha256
(base32 "0vldz14mxqxnjqb6an2pj7mgclv7nrk45cpscwq7g3fj2c0mfbhj"))))
- (build-system cargo-build-system)
(arguments
`(#:tests? #f ; tests require network access
#:cargo-inputs
@@ -43538,14 +43565,7 @@ algorithm. Includes streaming compression and decompression.")
("rust-libc" ,rust-libc-0.2)
("rust-winapi" ,rust-winapi-0.3))
#:cargo-development-inputs
- (("rust-tempdir" ,rust-tempdir-0.3))))
- (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))))
+ (("rust-tempdir" ,rust-tempdir-0.3))))))
(define-public rust-socks-0.3
(package