fix(websocket): install crypto provider if needed (#3124)

This commit is contained in:
Fabian-Lars
2025-11-25 20:02:47 +01:00
committed by GitHub
parent fa601e8754
commit 66a75ece27
4 changed files with 59 additions and 9 deletions
+8 -2
View File
@@ -31,10 +31,16 @@ rand = "0.9"
futures-util = "0.3"
tokio = { version = "1", features = ["net", "sync"] }
tokio-tungstenite = { version = "0.28" }
rustls = { version = "0.23", default-features = false, features = [
"ring",
], optional = true }
[features]
default = ["rustls-tls"]
native-tls = ["tokio-tungstenite/native-tls"]
native-tls-vendored = ["native-tls", "tokio-tungstenite/native-tls-vendored"]
rustls-tls = ["tokio-tungstenite/rustls-tls-webpki-roots"]
rustls-tls-native-roots = ["tokio-tungstenite/rustls-tls-native-roots"]
rustls-tls = ["tokio-tungstenite/rustls-tls-webpki-roots", "dep:rustls"]
rustls-tls-native-roots = [
"tokio-tungstenite/rustls-tls-native-roots",
"dep:rustls",
]