feat: tls features (#86)

* feat: tls features

* Update builds.yml
This commit is contained in:
Théo Monnom
2023-06-09 23:03:35 +02:00
committed by GitHub
parent d33e40c972
commit 9c2ba04f71
5 changed files with 124 additions and 106 deletions
+13 -1
View File
@@ -6,13 +6,25 @@ license = "Apache-2.0"
description = "Native SDK for LiveKit"
repository = "https://github.com/livekit/client-sdk-rust"
[features]
# By default ws TLS is not enabled
default = []
# Note that the following features only change the behavior of tokio-tungstenite.
# It doesn't change the behavior of libwebrtc/webrtc-sys
native-tls = ["tokio-tungstenite/native-tls"]
native-tls-vendored = ["tokio-tungstenite/native-tls-vendored"]
rustls-tls-native-roots = ["tokio-tungstenite/rustls-tls-native-roots"]
rustls-tls-webpki-roots = ["tokio-tungstenite/rustls-tls-webpki-roots"]
__rustls-tls = ["tokio-tungstenite/__rustls-tls"]
[dependencies]
livekit-webrtc = { path = "../livekit-webrtc", version = "0.1.1" }
livekit-protocol = { path = "../livekit-protocol", version = "0.1.0" }
prost = "0.11"
serde = { version = "1", features = ["derive"] }
serde_json = "1.0"
tokio-tungstenite = { version = "0.19", features = ["rustls-tls-native-roots"] }
tokio-tungstenite = { version = "0.19" }
tokio = { version = "1", features = ["full"] }
tokio-stream = "0.1"
parking_lot = { version = "0.12.1", features = ["send_guard"] }