| 1 | [package] |
| 2 | name = "libwebrtc" |
| 3 | version = "0.3.51" |
| 4 | edition.workspace = true |
| 5 | homepage = "https://livekit.io" |
| 6 | license.workspace = true |
| 7 | description = "Livekit safe bindings to libwebrtc" |
| 8 | repository.workspace = true |
| 9 | |
| 10 | [features] |
| 11 | default = [] |
| 12 | |
| 13 | # On Wayland, libwebrtc uses GDBus to communicate with the XDG Desktop Portal. |
| 14 | # GDBus requires a GLib event loop to be running. Enable this feature if you |
| 15 | # wish to use screensharing, and you do not already have a GLib event loop |
| 16 | # running in your application. |
| 17 | glib-main-loop = [ "dep:glib" ] |
| 18 | |
| 19 | # How CI checks this crate's features, read by |
| 20 | # `.github/workflows/feature-combinations-curated.yml` via `cargo metadata`. |
| 21 | [package.metadata.feature-combinations] |
| 22 | mode = "powerset" |
| 23 | |
| 24 | [dependencies] |
| 25 | log = { workspace = true } |
| 26 | serde = { workspace = true, features = ["derive"] } |
| 27 | serde_json = { workspace = true } |
| 28 | thiserror = { workspace = true } |
| 29 | |
| 30 | [target.'cfg(any(target_os = "linux", target_os = "freebsd"))'.dependencies] |
| 31 | glib = { version = "0.21.3", optional = true } |
| 32 | |
| 33 | [target.'cfg(target_os = "android")'.dependencies] |
| 34 | jni = "0.21" |
| 35 | |
| 36 | [target.'cfg(not(target_arch = "wasm32"))'.dependencies] |
| 37 | webrtc-sys = { workspace = true } |
| 38 | tokio-stream = { workspace = true } |
| 39 | lazy_static = { workspace = true } |
| 40 | parking_lot = { workspace = true } |
| 41 | tokio = { workspace = true, default-features = false, features = ["sync", "macros", "time", "rt-multi-thread"] } |
| 42 | cxx = "1.0" |
| 43 | rtrb = "0.3.3" |
| 44 | |
| 45 | [target.'cfg(target_arch = "wasm32")'.dependencies] |
| 46 | wasm-bindgen = "0.2" |
| 47 | js-sys = "0.3" |
| 48 | wasm-bindgen-futures = "0.4" |
| 49 | web-sys = { version = "0.3", features = [ |
| 50 | "MessageEvent", |
| 51 | "RtcPeerConnection", |
| 52 | "RtcSignalingState", |
| 53 | "RtcSdpType", |
| 54 | "RtcSessionDescriptionInit", |
| 55 | "RtcPeerConnectionIceEvent", |
| 56 | "RtcIceCandidate", |
| 57 | "RtcDataChannel", |
| 58 | "RtcDataChannelEvent", |
| 59 | "RtcDataChannelState", |
| 60 | "EventTarget", |
| 61 | "WebGlRenderingContext", |
| 62 | "WebGlTexture", |
| 63 | ] } |
| 64 | |
| 65 | [dev-dependencies] |
| 66 | env_logger = { workspace = true } |