gnu: Add rust-tokio-socks-0.3.

* gnu/packages/crates-io.scm (rust-tokio-socks-0.3): New variable.
(rust-tokio-socks-0.2): Inherit from above.
This commit is contained in:
Nicolas Goaziou 2020-12-28 22:44:01 +01:00
parent f4a687eef4
commit 354190b613
No known key found for this signature in database
GPG key ID: DA00B4F048E92F2D

View file

@ -31816,21 +31816,21 @@ (define-public rust-tokio-signal-0.2
futures.") futures.")
(license license:expat))) (license license:expat)))
(define-public rust-tokio-socks-0.2 (define-public rust-tokio-socks-0.3
(package (package
(name "rust-tokio-socks") (name "rust-tokio-socks")
(version "0.2.2") (version "0.3.0")
(source (source
(origin (origin
(method url-fetch) (method url-fetch)
(uri (crate-uri "tokio-socks" version)) (uri (crate-uri "tokio-socks" version))
(file-name (string-append name "-" version ".tar.gz")) (file-name (string-append name "-" version ".tar.gz"))
(sha256 (sha256
(base32 (base32 "0f95zcvllb5byz4acwbnlsk9a2rdql4x78x0a8nkfwhq4ifzs4fn"))))
"1bwdjafbbs0907w42dl899inykflz4gbm026wh097q151s57i5qr"))))
(build-system cargo-build-system) (build-system cargo-build-system)
(arguments (arguments
`(#:cargo-inputs `(#:tests? #false ;"tor_resolve_with_socket" not found
#:cargo-inputs
(("rust-bytes" ,rust-bytes-0.4) (("rust-bytes" ,rust-bytes-0.4)
("rust-either" ,rust-either-1) ("rust-either" ,rust-either-1)
("rust-futures" ,rust-futures-0.3) ("rust-futures" ,rust-futures-0.3)
@ -31842,10 +31842,36 @@ (define-public rust-tokio-socks-0.2
("rust-tokio" ,rust-tokio-0.2)))) ("rust-tokio" ,rust-tokio-0.2))))
(home-page "https://github.com/sticnarf/tokio-socks") (home-page "https://github.com/sticnarf/tokio-socks")
(synopsis "Asynchronous SOCKS proxy support for Rust") (synopsis "Asynchronous SOCKS proxy support for Rust")
(description "This package provides asynchronous SOCKS proxy support for (description
"This package provides asynchronous SOCKS proxy support for
Rust.") Rust.")
(license license:expat))) (license license:expat)))
(define-public rust-tokio-socks-0.2
(package
(inherit rust-tokio-socks-0.3)
(name "rust-tokio-socks")
(version "0.2.2")
(source
(origin
(method url-fetch)
(uri (crate-uri "tokio-socks" version))
(file-name (string-append name "-" version ".tar.gz"))
(sha256
(base32
"1bwdjafbbs0907w42dl899inykflz4gbm026wh097q151s57i5qr"))))
(arguments
`(#:cargo-inputs
(("rust-bytes" ,rust-bytes-0.4)
("rust-either" ,rust-either-1)
("rust-futures" ,rust-futures-0.3)
("rust-thiserror" ,rust-thiserror-1)
("rust-tokio" ,rust-tokio-0.2))
#:cargo-development-inputs
(("rust-hyper" ,rust-hyper-0.13)
("rust-once-cell" ,rust-once-cell-1)
("rust-tokio" ,rust-tokio-0.2))))))
(define-public rust-tokio-sync-0.2 (define-public rust-tokio-sync-0.2
(package (package
(name "rust-tokio-sync") (name "rust-tokio-sync")