From 35cac21b5de68fa16c5f3cf5124faf7874c2ce23 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=96R=C3=96SK=C5=90I=20Andr=C3=A1s?= Date: Sat, 11 Nov 2023 16:35:31 +0100 Subject: [PATCH] gnu: Add rust-tokio-rustls-0.24. * gnu/packages/crates-io.scm (rust-tokio-rustls-0.24): New variable. (rust-tokio-rustls-0.23): Inherit from rust-tokio-rustls-0.24. Change-Id: I633f7208f17d4d8c1abe79ff843d345335d54f26 Signed-off-by: Efraim Flashner --- gnu/packages/crates-io.scm | 49 ++++++++++++++++++++++++++++---------- 1 file changed, 37 insertions(+), 12 deletions(-) diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index ee33e479a0..db31d10e56 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -81256,19 +81256,52 @@ (define-public rust-tokio-reactor-0.1 "Event loop that drives Tokio I/O resources.") (license license:expat))) +(define-public rust-tokio-rustls-0.24 + (package + (name "rust-tokio-rustls") + (version "0.24.1") + (source + (origin + (method url-fetch) + (uri (crate-uri "tokio-rustls" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "10bhibg57mqir7xjhb2xmf24xgfpx6fzpyw720a4ih8a737jg0y2")))) + (build-system cargo-build-system) + (arguments + `(#:tests? #f ; Issue with the certificate test dates. + #:cargo-inputs + (("rust-rustls" ,rust-rustls-0.21) + ("rust-tokio" ,rust-tokio-1)) + #:cargo-development-inputs + (("rust-argh" ,rust-argh-0.1) + ("rust-futures-util" ,rust-futures-util-0.3) + ("rust-lazy-static" ,rust-lazy-static-1) + ("rust-rustls-pemfile" ,rust-rustls-pemfile-1) + ("rust-rustls-webpki" ,rust-rustls-webpki-0.100) + ("rust-tokio" ,rust-tokio-1) + ("rust-webpki-roots" ,rust-webpki-roots-0.23)))) + (native-inputs + (list perl)) + (home-page "https://github.com/tokio-rs/tls") + (synopsis "Asynchronous TLS/SSL streams for Tokio") + (description + "This package provides asynchronous TLS/SSL streams for Tokio using +Rustls.") + (license (list license:expat license:asl2.0)))) + (define-public rust-tokio-rustls-0.23 (package + (inherit rust-tokio-rustls-0.24) (name "rust-tokio-rustls") (version "0.23.4") (source (origin (method url-fetch) (uri (crate-uri "tokio-rustls" version)) - (file-name - (string-append name "-" version ".tar.gz")) + (file-name (string-append name "-" version ".tar.gz")) (sha256 (base32 "0nfsmmi8l1lgpbfy6079d5i13984djzcxrdr9jc06ghi0cwyhgn4")))) - (build-system cargo-build-system) (arguments `(#:tests? #f ; Issue with the certificate test dates. #:cargo-inputs @@ -81280,15 +81313,7 @@ (define-public rust-tokio-rustls-0.23 ("rust-lazy-static" ,rust-lazy-static-1) ("rust-rustls-pemfile" ,rust-rustls-pemfile-0.2) ("rust-tokio" ,rust-tokio-1) - ("rust-webpki-roots" ,rust-webpki-roots-0.22)))) - (native-inputs - (list perl)) - (home-page "https://github.com/tokio-rs/tls") - (synopsis "Asynchronous TLS/SSL streams for Tokio") - (description - "This package provides asynchronous TLS/SSL streams for Tokio using -Rustls.") - (license (list license:expat license:asl2.0)))) + ("rust-webpki-roots" ,rust-webpki-roots-0.22)))))) (define-public rust-tokio-rustls-0.22 (package