From 42fb18a374124527a0c6b4101090de9922c0d0d8 Mon Sep 17 00:00:00 2001 From: Yuxiang Cao Date: Fri, 4 Oct 2024 10:01:59 -0700 Subject: [PATCH] fix rustls crypto provider - ensure no rustls crypto provider is selected by default - use ring if https is needed --- Cargo.toml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 5cda427..4725ef5 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -46,10 +46,10 @@ headers = { version = "0.4", optional = true } ### TLS / HTTPS / PROXY rustls = { version = "0.23", default-features = false, features = ["std", "tls12"], optional = true } rcgen = { version = "0.12", features = ["pem", "x509-parser"], optional = true } -tokio-rustls = { version = "0.26", optional = true } +tokio-rustls = { version = "0.26", default-features = false, features = ["logging", "tls12"], optional = true } rustls-pemfile = { version = "2", optional = true } tls-detect = { version = "0.1", optional = true } -hyper-rustls = { version = "0.27", optional = true } +hyper-rustls = { version = "0.27", default-features = false, features = ["http1", "logging", "tls12", "native-tokio"], optional = true } futures-timer = "3" [dev-dependencies] @@ -68,7 +68,7 @@ standalone = ["clap", "env_logger", "record", "http2", "cookies", "remote", "re color = ["colored"] # enables colorful output in standalone mode cookies = ["headers"] # enables support for matching cookies remote = ["hyper-util/client-legacy", "hyper-util/http2"] # allows to connect to remote mock servers -remote-https = ["remote", "rustls", "hyper-rustls", "hyper-rustls/http2"] # allows to connect to remote mock servers via HTTPS +remote-https = ["remote", "rustls", "rustls/ring", "hyper-rustls", "hyper-rustls/ring", "hyper-rustls/http2"] # allows to connect to remote mock servers via HTTPS proxy = ["remote-https", "hyper-util/client-legacy", "hyper-util/http2", "hyper-rustls", "hyper-rustls/http2"] # enables proxy functionality https = ["rustls", "rcgen", "tokio-rustls", "rustls-pemfile", "rustls/ring", "tls-detect"] # enables httpmock server support for TLS/HTTPS http2 = ["hyper/http2", "hyper-util/http2"] # enables httpmocks server support for HTTP2