Skip to main content

sew_lk_compat/
lib.rs

1//! `sew-lk-compat`: the LiveKit-protocol pieces of Sew's native voice engine. Not
2//! affiliated with or endorsed by LiveKit, Inc.
3//!
4//! - [`signal`]: the `/rtc/v1` join URL with its `join_request`, `ClientInfo`, trickles.
5//! - [`session`]: the Sans-IO signalling session of a single-PC voice client.
6//! - [`e2ee`]: LiveKit's AES-GCM frame format (`LkGcmV1`) and its configuration.
7//! - [`compat`]: client-sdk-js rules (`compareVersions`, the validate classifier).
8//!
9//! `signal` and `session` were rewritten from a written behaviour specification; `compat` and
10//! `e2ee::lkgcm` are ported from LiveKit's client-sdk-js (Apache-2.0). `sew-call-client` (MIT OR
11//! Apache-2.0) builds the engine on these and holds no LiveKit-derived code itself. See this
12//! crate's README and NOTICE for the origins.
13
14pub mod compat;
15pub mod e2ee;
16pub mod session;
17pub mod signal;
18
19pub use session::{LeaveAction, Session, SessionCounters, SessionEvent};
20pub use signal::{ClientInfoOpts, JoinParams};
21
22/// README.md's examples, compiled and run as doc tests.
23#[cfg(doctest)]
24#[doc = include_str!("../README.md")]
25struct ReadmeExamples;