diff --git a/Cargo.lock b/Cargo.lock index b1e3f3ed26..7615865120 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -11010,16 +11010,6 @@ dependencies = [ "syn 2.0.38", ] -[[package]] -name = "tokio-native-tls" -version = "0.3.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bbae76ab933c85776efabc971569dd6119c580d8f5d448769dec1764bf796ef2" -dependencies = [ - "native-tls", - "tokio", -] - [[package]] name = "tokio-rustls" version = "0.23.4" @@ -11098,9 +11088,8 @@ checksum = "212d5dcb2a1ce06d81107c3d0ffa3121fe974b73f068c8282cb1c32328113b6c" dependencies = [ "futures-util", "log", - "native-tls", + "rustls 0.21.7", "tokio", - "tokio-native-tls", "tungstenite", ] @@ -11553,7 +11542,6 @@ dependencies = [ "http", "httparse", "log", - "native-tls", "rand 0.8.5", "rustls 0.21.7", "sha1", diff --git a/Cargo.toml b/Cargo.toml index 3a328ad5f1..0cd172bdef 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -168,9 +168,9 @@ time = "0.3.30" thiserror = "1.0.48" tokio = "1.33.0" tokio-util = "0.7.10" -tokio-tungstenite = "0.20.1" +tokio-tungstenite = { version = "0.20.1", features = ["rustls"] } tracing = "0.1.37" -tungstenite = { version = "0.20.1", default-features = false } +tungstenite = { version = "0.20.1", default-features = false, features = ["rustls"] } ts-rs = "7.0.0" utoipa = "3.5.0" utoipa-swagger-ui = "3.1.5" diff --git a/common/client-libs/gateway-client/Cargo.toml b/common/client-libs/gateway-client/Cargo.toml index 75f56fd7c0..67297687e4 100644 --- a/common/client-libs/gateway-client/Cargo.toml +++ b/common/client-libs/gateway-client/Cargo.toml @@ -48,7 +48,7 @@ features = ["net", "sync", "time"] workspace = true # the choice of this particular tls feature was arbitrary; # if you reckon a different one would be more appropriate, feel free to change it -features = ["native-tls"] +# features = ["native-tls"] # wasm-only dependencies [target."cfg(target_arch = \"wasm32\")".dependencies.wasm-bindgen]