Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
extension_cli: Allow building without dynamically linking WebRTC (#13080)
Marshall Bowers6319ae0b4a98
diff --git a/crates/call/Cargo.toml b/crates/call/Cargo.tomlindex 0377c4f1f42..70249eb533d 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.tomlindex 08b5250c3f9..53ff78b68c6 100644--- a/crates/extension/Cargo.toml+++ b/crates/extension/Cargo.toml@@ -12,6 +12,9 @@ workspace = truepath = "src/extension_store.rs"doctest = false+[features]+no-webrtc = ["workspace/no-webrtc"]+[dependencies]anyhow.workspace = trueassistant_slash_command.workspace = truediff --git a/crates/extension_cli/Cargo.toml b/crates/extension_cli/Cargo.tomlindex f459c933dcf..e2094f20b3d 100644--- a/crates/extension_cli/Cargo.toml+++ b/crates/extension_cli/Cargo.toml@@ -17,7 +17,7 @@ anyhow.workspace = trueclap = { workspace = true, features = ["derive"] }env_logger.workspace = truefs.workspace = true-extension.workspace = true+extension = { workspace = true, features = ["no-webrtc"] }language.workspace = truelog.workspace = truerpc.workspace = truediff --git a/crates/live_kit_client/Cargo.toml b/crates/live_kit_client/Cargo.tomlindex e893e0aab10..f7463693eb4 100644--- a/crates/live_kit_client/Cargo.toml+++ b/crates/live_kit_client/Cargo.toml@@ -17,6 +17,7 @@ doctest = falsename = "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.rsindex 53aad4181bd..2fdfd982bf9 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.tomlindex 4fa7226af59..2b178d50dde 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",