Skip to content

livekit: Bump rustls to 0.23 indirectly and allow consumer to provide TLS config#916

Open
kubkon wants to merge 3 commits intolivekit:mainfrom
kubkon:push-wynlymml
Open

livekit: Bump rustls to 0.23 indirectly and allow consumer to provide TLS config#916
kubkon wants to merge 3 commits intolivekit:mainfrom
kubkon:push-wynlymml

Conversation

@kubkon
Copy link

@kubkon kubkon commented Feb 26, 2026

This patch does two things:

  • it bumps rustls to 0.23 used indirectly via tokio-tungstenite bumped to 0.28 and tokio-rustls bumped to 0.26
  • it exposes tls_config: rustls::ClientConfig field to the consumer in livekit_api::signal_client::SignalOptions and livekit::room::RoomOptions which is then internally routed to the SignalStream when configuring the connection; setting this option requires building livekit with signal-client-tokio and rustls-tls-native-roots features enabled
  • EDIT: I've had to re-shuffle the default features of livekit-api a little since livekit as a client SDK doesn't need webhooks or access-token which ends up pulling in unnecessary deps such as jsonwebtoken and ends up conflicting with our use of jsonwebtoken in other places in Zed - lemme know if that makes sense or if there is a better way!

With this patch upstreamed, we could get rid of our fork over at Zed. Lemme know what you reckon!

@CLAassistant
Copy link

CLAassistant commented Feb 26, 2026

CLA assistant check
All committers have signed the CLA.

Otherwise, when using livekit client SDK aka the `livekit` crate
we are pulling in `webhooks` and `access-token` related
functionality which really is not needed.
@kubkon
Copy link
Author

kubkon commented Feb 26, 2026

FWIW here's a matching PR on our end: zed-industries/zed#50205 Thought it might be useful to showcase the intended use of the proposed changes!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants