diff --git a/crates/call/Cargo.toml b/crates/call/Cargo.toml index 0377c4f1f4..70249eb533 100644 --- a/crates/call/Cargo.toml +++ b/crates/call/Cargo.toml @@ -13,6 +13,7 @@ path = "src/call.rs" doctest = false [features] +no-webrtc = ["live_kit_client/no-webrtc"] test-support = [ "client/test-support", "collections/test-support", diff --git a/crates/extension/Cargo.toml b/crates/extension/Cargo.toml index 08b5250c3f..53ff78b68c 100644 --- a/crates/extension/Cargo.toml +++ b/crates/extension/Cargo.toml @@ -12,6 +12,9 @@ workspace = true path = "src/extension_store.rs" doctest = false +[features] +no-webrtc = ["workspace/no-webrtc"] + [dependencies] anyhow.workspace = true assistant_slash_command.workspace = true diff --git a/crates/extension_cli/Cargo.toml b/crates/extension_cli/Cargo.toml index f459c933dc..e2094f20b3 100644 --- a/crates/extension_cli/Cargo.toml +++ b/crates/extension_cli/Cargo.toml @@ -17,7 +17,7 @@ anyhow.workspace = true clap = { workspace = true, features = ["derive"] } env_logger.workspace = true fs.workspace = true -extension.workspace = true +extension = { workspace = true, features = ["no-webrtc"] } language.workspace = true log.workspace = true rpc.workspace = true diff --git a/crates/live_kit_client/Cargo.toml b/crates/live_kit_client/Cargo.toml index e893e0aab1..f7463693eb 100644 --- a/crates/live_kit_client/Cargo.toml +++ b/crates/live_kit_client/Cargo.toml @@ -17,6 +17,7 @@ doctest = false name = "test_app" [features] +no-webrtc = [] test-support = [ "async-trait", "collections/test-support", diff --git a/crates/live_kit_client/build.rs b/crates/live_kit_client/build.rs index 53aad4181b..2fdfd982bf 100644 --- a/crates/live_kit_client/build.rs +++ b/crates/live_kit_client/build.rs @@ -37,7 +37,7 @@ const MACOS_TARGET_VERSION: &str = "10.15.7"; fn main() { if cfg!(all( target_os = "macos", - not(any(test, feature = "test-support")) + not(any(test, feature = "test-support", feature = "no-webrtc")), )) { let swift_target = get_swift_target(); diff --git a/crates/workspace/Cargo.toml b/crates/workspace/Cargo.toml index 4fa7226af5..2b178d50dd 100644 --- a/crates/workspace/Cargo.toml +++ b/crates/workspace/Cargo.toml @@ -13,6 +13,7 @@ path = "src/workspace.rs" doctest = false [features] +no-webrtc = ["call/no-webrtc"] test-support = [ "call/test-support", "client/test-support",