Cargo Features

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

By default ws TLS is not enabled

signal-client-tokio

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

signal_client

Affects livekit-api::signal_client

signal-client-async

Enables tokio, async-tungstenite ^0.25.0, futures-util, and isahc, async of livekit-runtime

Affects livekit-api::signal_client

signal-client-dispatcher

Enables tokio, async-tungstenite ^0.25.0, futures-util, and isahc, dispatcher of livekit-runtime

Affects livekit-api::signal_client

services-tokio default

Enables reqwest ^0.11

Affects livekit-api::services

services-async

Enables isahc

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 optional async-tungstenite ^0.25.0, 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