From 242e4b7df6ec48e6528456ae6eb0115ea4ebcb04 Mon Sep 17 00:00:00 2001 From: MichaIng Date: Tue, 19 Dec 2023 21:44:48 +0100 Subject: [PATCH 1/2] chore: bump dependency versions including rustls-pemfile and tokio-rustls from alpha to stable versions. Also make this a stable version now that all dependencies are stable as well. Signed-off-by: MichaIng --- Cargo.toml | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 2ff23f0..5beed70 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "flexible-hyper-server-tls" -version = "0.1.2-alpha.1" +version = "0.1.2" edition = "2021" license = "MIT OR Apache-2.0" description = "Easily choose between HTTP or HTTPS when using hyper" @@ -11,13 +11,12 @@ exclude = ["examples/certs"] [dependencies] futures-util = { version = "0.3.28", default-features = false, features = ["std"] } -hyper = { version = "0.14.27", features = ["server", "tcp"] } -rustls-pemfile = "2.0.0-alpha.1" -thiserror = "1.0.44" -tokio = { version = "1.29.1", features = ["net", "time"] } -tokio-rustls = "0.25.0-alpha.1" +hyper = { version = "0.14.28", features = ["server", "tcp"] } +rustls-pemfile = "2.0.0" +thiserror = "1.0.51" +tokio = { version = "1.35.1", features = ["net", "time"] } +tokio-rustls = "0.25.0" [dev-dependencies] -hyper = { version = "0.14.27", features = ["http1", "http2"] } -tokio = { version = "1.29.1", features = ["rt", "macros"] } - +hyper = { version = "0.14.28", features = ["http1", "http2"] } +tokio = { version = "1.35.1", features = ["rt", "macros"] } From 2aa82b690266de44faef4a76fccf39d5aeb82b61 Mon Sep 17 00:00:00 2001 From: ravenclaw900 <50060110+ravenclaw900@users.noreply.github.com> Date: Tue, 19 Dec 2023 16:37:57 -0600 Subject: [PATCH 2/2] fix: remove unnecessary `with_safe_defaults` line --- src/tlsconfig.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/src/tlsconfig.rs b/src/tlsconfig.rs index 93b7e36..0e1e3d7 100644 --- a/src/tlsconfig.rs +++ b/src/tlsconfig.rs @@ -92,7 +92,6 @@ fn get_tlsacceptor_from_readers( }; let mut cfg = rustls::server::ServerConfig::builder() - .with_safe_defaults() .with_no_client_auth() .with_single_cert(certs, key)?;