gnu: Add rust-tokio-native-tls-0.3.

* gnu/packages/crates-io.scm (rust-tokio-native-tls-0.3): New variable.
(rust-tokio-native-tls-0.1): Inherit from above.
This commit is contained in:
Nicolas Goaziou 2021-03-10 20:03:07 +01:00
parent f8e2758ec4
commit 7945e1611f
No known key found for this signature in database
GPG key ID: DA00B4F048E92F2D

View file

@ -42633,8 +42633,34 @@ (define-public rust-tokio-named-pipes-0.1
Tokio.") Tokio.")
(license (list license:expat license:asl2.0)))) (license (list license:expat license:asl2.0))))
(define-public rust-tokio-native-tls-0.3
(package
(name "rust-tokio-native-tls")
(version "0.3.0")
(source
(origin
(method url-fetch)
(uri (crate-uri "tokio-native-tls" version))
(file-name (string-append name "-" version ".tar.gz"))
(sha256
(base32 "0yvikgmph2qjq0ni2h2wfaxkzhbnc09c2544av0zidyj1dk9bngp"))))
(build-system cargo-build-system)
(arguments
`(#:skip-build? #t
#:cargo-inputs
(("rust-native-tls" ,rust-native-tls-0.2)
("rust-tokio" ,rust-tokio-1))))
(home-page "https://tokio.rs")
(synopsis "TLS/SSL streams for Tokio")
(description
"This package provides an implementation of TLS/SSL streams for Tokio
using native-tls giving an implementation of TLS for nonblocking I/O
streams.")
(license license:expat)))
(define-public rust-tokio-native-tls-0.1 (define-public rust-tokio-native-tls-0.1
(package (package
(inherit rust-tokio-native-tls-0.3)
(name "rust-tokio-native-tls") (name "rust-tokio-native-tls")
(version "0.1.0") (version "0.1.0")
(source (source
@ -42644,19 +42670,11 @@ (define-public rust-tokio-native-tls-0.1
(file-name (string-append name "-" version ".tar.gz")) (file-name (string-append name "-" version ".tar.gz"))
(sha256 (sha256
(base32 "0sd0xmj7kwizybpsg8vh7a6sixj0bs4dzihzgmdf1a0rm69qaq6d")))) (base32 "0sd0xmj7kwizybpsg8vh7a6sixj0bs4dzihzgmdf1a0rm69qaq6d"))))
(build-system cargo-build-system)
(arguments (arguments
`(#:skip-build? #t `(#:skip-build? #t
#:cargo-inputs #:cargo-inputs
(("rust-native-tls" ,rust-native-tls-0.2) (("rust-native-tls" ,rust-native-tls-0.2)
("rust-tokio" ,rust-tokio-0.2)))) ("rust-tokio" ,rust-tokio-0.2))))))
(home-page "https://tokio.rs")
(synopsis "TLS/SSL streams for Tokio")
(description
"This package provides an implementation of TLS/SSL streams for Tokio
using native-tls giving an implementation of TLS for nonblocking I/O
streams.")
(license license:expat)))
(define-public rust-tokio-net-0.2 (define-public rust-tokio-net-0.2
(package (package