Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

chore: Make objc a workspace level crate (#28258)

tidelyaa026156f2da
diff --git a/Cargo.toml b/Cargo.toml
index e6025bde4a4..26ac487a07b 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -465,6 +465,7 @@ mlua = { version = "0.10", features = ["lua54", "vendored", "async", "send"] }
nanoid = "0.4"
nbformat = { version = "0.10.0" }
nix = "0.29"
+objc = "0.2"
open = "5.0.0"
num-format = "0.4.4"
ordered-float = "2.1.1"
diff --git a/crates/fs/Cargo.toml b/crates/fs/Cargo.toml
index 0a2ec63f51d..633fc1fc994 100644
--- a/crates/fs/Cargo.toml
+++ b/crates/fs/Cargo.toml
@@ -37,7 +37,7 @@ workspace-hack.workspace = true
[target.'cfg(target_os = "macos")'.dependencies]
fsevent.workspace = true
-objc = "0.2"
+objc.workspace = true
cocoa = "0.26"
[target.'cfg(not(target_os = "macos"))'.dependencies]
diff --git a/crates/gpui/Cargo.toml b/crates/gpui/Cargo.toml
index 78a460a1f61..634dfa753e0 100644
--- a/crates/gpui/Cargo.toml
+++ b/crates/gpui/Cargo.toml
@@ -138,7 +138,7 @@ font-kit = { git = "https://github.com/zed-industries/font-kit", rev = "5474cfad
foreign-types = "0.5"
log.workspace = true
media.workspace = true
-objc = "0.2"
+objc.workspace = true
objc2 = { version = "0.5", optional = true }
objc2-metal = { version = "0.2", optional = true }
#TODO: replace with "objc2"
diff --git a/crates/livekit_client/Cargo.toml b/crates/livekit_client/Cargo.toml
index 7c9e07cd5c8..6e7300e318f 100644
--- a/crates/livekit_client/Cargo.toml
+++ b/crates/livekit_client/Cargo.toml
@@ -52,7 +52,7 @@ scap.workspace = true
core-foundation.workspace = true
core-video.workspace = true
coreaudio-rs = "0.12.1"
-objc = "0.2"
+objc.workspace = true
[dev-dependencies]
collections = { workspace = true, features = ["test-support"] }
diff --git a/crates/media/Cargo.toml b/crates/media/Cargo.toml
index e644ea9d1fb..0dd5b8e0a4d 100644
--- a/crates/media/Cargo.toml
+++ b/crates/media/Cargo.toml
@@ -22,7 +22,7 @@ ctor.workspace = true
foreign-types = "0.5"
metal.workspace = true
core-video.workspace = true
-objc = "0.2"
+objc.workspace = true
[build-dependencies]
bindgen = "0.71"