mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-14 15:10:16 -05:00
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>
This commit is contained in:
parent
0b7ddcf650
commit
43dca39275
1 changed files with 29 additions and 9 deletions
|
@ -43519,8 +43519,36 @@ (define-public rust-snap-1
|
|||
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 @@ (define-public rust-socket2-0.3
|
|||
(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 @@ (define-public rust-socket2-0.3
|
|||
("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
|
||||
|
|
Loading…
Reference in a new issue