Cargo Features

[dependencies]
livekit-api = { version = "0.3.2", default-features = false, features = ["signal-client", "services", "access-token", "webhooks", "native-tls", "native-tls-vendored", "rustls-tls-native-roots", "rustls-tls-webpki-roots"] }
default = access-token, services, webhooks

By default ws TLS is not enabled

signal-client

Enables futures-util, reqwest ^0.11, tokio, and tokio-tungstenite ^0.20

tokio-tungstenite:

signal_client

Affects livekit-api::signal_client

services default

Enables reqwest ^0.11

Affects livekit-api::services

access-token default webhooks

Enables jsonwebtoken

access_token & services

Affects livekit-api::access_token

webhooks default = access-token

Enables base64 ^0.21 and serde_json

Affects livekit-api::webhooks

native-tls

Note that the following features only change the behavior of tokio-tungstenite.
It doesn't change the behavior of libwebrtc/webrtc-sys

Enables native-tls of optional reqwest ^0.11 and optional tokio-tungstenite ^0.20

native-tls-vendored

Enables native-tls-vendored of optional reqwest ^0.11 and optional tokio-tungstenite ^0.20

rustls-tls-native-roots

Enables rustls-tls-native-roots of optional reqwest ^0.11 and optional tokio-tungstenite ^0.20

rustls-tls-webpki-roots

Enables rustls-tls-webpki-roots of optional reqwest ^0.11 and optional tokio-tungstenite ^0.20