diff --git a/Cargo.lock b/Cargo.lock index 93b3a1d6a31..5b9031424ee 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -4747,10 +4747,11 @@ checksum = "212d5dcb2a1ce06d81107c3d0ffa3121fe974b73f068c8282cb1c32328113b6c" dependencies = [ "futures-util", "log", - "native-tls", + "rustls", "tokio", - "tokio-native-tls", + "tokio-rustls", "tungstenite", + "webpki-roots", ] [[package]] @@ -5026,8 +5027,8 @@ dependencies = [ "http", "httparse", "log", - "native-tls", "rand", + "rustls", "sha1", "thiserror", "url", diff --git a/lib/registry/Cargo.toml b/lib/registry/Cargo.toml index 703a5f77f41..a400488fbb8 100644 --- a/lib/registry/Cargo.toml +++ b/lib/registry/Cargo.toml @@ -44,7 +44,7 @@ thiserror = "1.0.37" time = { version = "0.3.17", default-features = false, features = ["parsing", "std", "formatting"], optional = true } tldextract = "0.6.0" tokio = "1" -tokio-tungstenite = {version = "0.20", features = ["native-tls"]} +tokio-tungstenite = {version = "0.20", features = ["rustls-tls-webpki-roots"]} toml = "0.5.9" tracing = "0.1.40" url = "2.3.1"