mirror of
https://github.com/zed-industries/zed.git
synced 2024-11-08 07:35:01 +03:00
6319ae0b4a
This PR fixes an issue where the `zed-extension` CLI could no longer be run as a static binary due to the following error: ``` dyld[36964]: Library not loaded: @rpath/WebRTC.framework/WebRTC Referenced from: <56332E1D-292E-3F9B-97B9-8A9962D21599> /Users/maxdeviant/projects/zed-extensions/zed-extension Reason: no LC_RPATH's found fish: Job 1, './zed-extension --scratch-dir .…' terminated by signal SIGABRT (Abort) ``` This is the result of the addition of a dependency on `workspace` to the `extension` crate (and thus, the `extension_cli` crate) in #12360. Since we don't actually _need_ WebRTC in the extension CLI, we don't care about dynamically linking it. To resolve this, a new `no-webrtc` feature has been added to the `live_kit_client` client crate and threaded through all of the crates between it and the `extension_cli`. Enabling the `no-webrtc` feature will prevent linking to the LiveKit Swift SDK as well as linking the WebRTC framework. Release Notes: - N/A
55 lines
1.4 KiB
TOML
55 lines
1.4 KiB
TOML
[package]
|
|
name = "call"
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
publish = false
|
|
license = "GPL-3.0-or-later"
|
|
|
|
[lints]
|
|
workspace = true
|
|
|
|
[lib]
|
|
path = "src/call.rs"
|
|
doctest = false
|
|
|
|
[features]
|
|
no-webrtc = ["live_kit_client/no-webrtc"]
|
|
test-support = [
|
|
"client/test-support",
|
|
"collections/test-support",
|
|
"gpui/test-support",
|
|
"live_kit_client/test-support",
|
|
"project/test-support",
|
|
"util/test-support"
|
|
]
|
|
|
|
[dependencies]
|
|
anyhow.workspace = true
|
|
audio.workspace = true
|
|
client.workspace = true
|
|
collections.workspace = true
|
|
fs.workspace = true
|
|
futures.workspace = true
|
|
gpui.workspace = true
|
|
language.workspace = true
|
|
live_kit_client.workspace = true
|
|
log.workspace = true
|
|
postage.workspace = true
|
|
project.workspace = true
|
|
schemars.workspace = true
|
|
serde.workspace = true
|
|
serde_derive.workspace = true
|
|
settings.workspace = true
|
|
util.workspace = true
|
|
|
|
[dev-dependencies]
|
|
client = { workspace = true, features = ["test-support"] }
|
|
collections = { workspace = true, features = ["test-support"] }
|
|
fs = { workspace = true, features = ["test-support"] }
|
|
gpui = { workspace = true, features = ["test-support"] }
|
|
language = { workspace = true, features = ["test-support"] }
|
|
live_kit_client = { workspace = true, features = ["test-support"] }
|
|
project = { workspace = true, features = ["test-support"] }
|
|
util = { workspace = true, features = ["test-support"] }
|
|
http = { workspace = true, features = ["test-support"] }
|