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.

Clean up dependencies of call,lsp,project,settings,vim,welcome, and workspace (#8330)

Dzmitry Malyshau35bec9803a70
diff --git a/Cargo.lock b/Cargo.lock
index 8add9877f4c..a785e07c51d 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1635,26 +1635,21 @@ name = "call"
version = "0.1.0"
dependencies = [
"anyhow",
- "async-broadcast 0.4.1",
"audio",
"client",
"collections",
"fs",
"futures 0.3.28",
"gpui",
- "image",
"language",
"live_kit_client",
"log",
- "media",
"postage",
"project",
"schemars",
"serde",
"serde_derive",
- "serde_json",
"settings",
- "smallvec",
"util",
]
@@ -5372,10 +5367,8 @@ dependencies = [
"postage",
"release_channel",
"serde",
- "serde_derive",
"serde_json",
"smol",
- "unindent",
"util",
]
@@ -7023,16 +7016,13 @@ dependencies = [
"aho-corasick",
"anyhow",
"async-trait",
- "backtrace",
"client",
"clock",
"collections",
"copilot",
- "ctor",
"db",
"env_logger",
"fs",
- "fsevent",
"futures 0.3.28",
"fuzzy",
"git",
@@ -7042,7 +7032,6 @@ dependencies = [
"ignore",
"itertools 0.10.5",
"language",
- "lazy_static",
"log",
"lsp",
"node_runtime",
@@ -7056,7 +7045,6 @@ dependencies = [
"rpc",
"schemars",
"serde",
- "serde_derive",
"serde_json",
"settings",
"sha2 0.10.7",
@@ -7064,11 +7052,8 @@ dependencies = [
"smol",
"sum_tree",
"task",
- "tempfile",
"terminal",
"text",
- "thiserror",
- "toml 0.8.10",
"unindent",
"util",
"which 6.0.0",
@@ -8569,13 +8554,11 @@ version = "0.1.0"
dependencies = [
"anyhow",
"collections",
- "feature_flags",
"fs",
"futures 0.3.28",
"gpui",
"indoc",
"lazy_static",
- "postage",
"pretty_assertions",
"release_channel",
"rust-embed",
@@ -8585,7 +8568,6 @@ dependencies = [
"serde_json",
"serde_json_lenient",
"smallvec",
- "toml 0.8.10",
"tree-sitter",
"tree-sitter-json 0.19.0",
"unindent",
@@ -11090,13 +11072,11 @@ dependencies = [
"futures 0.3.28",
"gpui",
"indoc",
- "itertools 0.10.5",
"language",
"log",
"lsp",
"nvim-rs",
"parking_lot 0.11.2",
- "project",
"regex",
"release_channel",
"schemars",
@@ -11561,17 +11541,14 @@ dependencies = [
"client",
"db",
"editor",
- "fs",
"fuzzy",
"gpui",
"install_cli",
- "log",
"picker",
"project",
"schemars",
"serde",
"settings",
- "theme",
"theme_selector",
"ui",
"util",
@@ -11923,8 +11900,6 @@ dependencies = [
"fs",
"futures 0.3.28",
"gpui",
- "indoc",
- "install_cli",
"itertools 0.10.5",
"language",
"lazy_static",
@@ -11935,13 +11910,11 @@ dependencies = [
"project",
"schemars",
"serde",
- "serde_derive",
"serde_json",
"settings",
"smallvec",
"sqlez",
"task",
- "terminal",
"theme",
"ui",
"util",
diff --git a/crates/call/Cargo.toml b/crates/call/Cargo.toml
index 74726a57a31..a0acf544b5d 100644
--- a/crates/call/Cargo.toml
+++ b/crates/call/Cargo.toml
@@ -21,26 +21,21 @@ test-support = [
[dependencies]
anyhow.workspace = true
-async-broadcast = "0.4"
audio.workspace = true
client.workspace = true
collections.workspace = true
fs.workspace = true
futures.workspace = true
gpui.workspace = true
-image = "0.23"
language.workspace = true
live_kit_client.workspace = true
log.workspace = true
-media.workspace = true
postage.workspace = true
project.workspace = true
schemars.workspace = true
serde.workspace = true
serde_derive.workspace = true
-serde_json.workspace = true
settings.workspace = true
-smallvec.workspace = true
util.workspace = true
[dev-dependencies]
diff --git a/crates/lsp/Cargo.toml b/crates/lsp/Cargo.toml
index 5f218aea6c7..902105341be 100644
--- a/crates/lsp/Cargo.toml
+++ b/crates/lsp/Cargo.toml
@@ -23,7 +23,6 @@ lsp-types = { git = "https://github.com/zed-industries/lsp-types", branch = "upd
parking_lot.workspace = true
postage.workspace = true
serde.workspace = true
-serde_derive.workspace = true
serde_json.workspace = true
smol.workspace = true
util.workspace = true
@@ -34,5 +33,4 @@ async-pipe = { git = "https://github.com/zed-industries/async-pipe-rs", rev = "8
ctor.workspace = true
env_logger.workspace = true
gpui = { workspace = true, features = ["test-support"] }
-unindent.workspace = true
util = { workspace = true, features = ["test-support"] }
diff --git a/crates/project/Cargo.toml b/crates/project/Cargo.toml
index e83a4ed6582..f02f36903d9 100644
--- a/crates/project/Cargo.toml
+++ b/crates/project/Cargo.toml
@@ -24,14 +24,12 @@ test-support = [
aho-corasick = "1.1"
anyhow.workspace = true
async-trait.workspace = true
-backtrace = "0.3"
client.workspace = true
clock.workspace = true
collections.workspace = true
copilot.workspace = true
db.workspace = true
fs.workspace = true
-fsevent.workspace = true
futures.workspace = true
fuzzy.workspace = true
git.workspace = true
@@ -40,7 +38,6 @@ gpui.workspace = true
ignore = "0.4"
itertools = "0.10"
language.workspace = true
-lazy_static.workspace = true
log.workspace = true
lsp.workspace = true
node_runtime.workspace = true
@@ -53,7 +50,6 @@ rpc.workspace = true
task.workspace = true
schemars.workspace = true
serde.workspace = true
-serde_derive.workspace = true
serde_json.workspace = true
settings.workspace = true
sha2 = "0.10"
@@ -62,15 +58,12 @@ smol.workspace = true
sum_tree.workspace = true
terminal.workspace = true
text.workspace = true
-thiserror.workspace = true
-toml.workspace = true
util.workspace = true
which.workspace = true
[dev-dependencies]
client = { workspace = true, features = ["test-support"] }
collections = { workspace = true, features = ["test-support"] }
-ctor.workspace = true
db = { workspace = true, features = ["test-support"] }
env_logger.workspace = true
fs = { workspace = true, features = ["test-support"] }
@@ -83,6 +76,5 @@ prettier = { workspace = true, features = ["test-support"] }
pretty_assertions.workspace = true
rpc = { workspace = true, features = ["test-support"] }
settings = { workspace = true, features = ["test-support"] }
-tempfile.workspace = true
unindent.workspace = true
util = { workspace = true, features = ["test-support"] }
diff --git a/crates/settings/Cargo.toml b/crates/settings/Cargo.toml
index 459bcf6703a..d9ad9d3f9ab 100644
--- a/crates/settings/Cargo.toml
+++ b/crates/settings/Cargo.toml
@@ -15,12 +15,10 @@ test-support = ["gpui/test-support", "fs/test-support"]
[dependencies]
anyhow.workspace = true
collections.workspace = true
-feature_flags.workspace = true
fs.workspace = true
futures.workspace = true
gpui.workspace = true
lazy_static.workspace = true
-postage.workspace = true
release_channel.workspace = true
rust-embed.workspace = true
schemars.workspace = true
@@ -29,7 +27,6 @@ serde_derive.workspace = true
serde_json.workspace = true
serde_json_lenient.workspace = true
smallvec.workspace = true
-toml.workspace = true
tree-sitter-json = "*"
tree-sitter.workspace = true
util.workspace = true
diff --git a/crates/vim/Cargo.toml b/crates/vim/Cargo.toml
index 682403ba5c6..8ae510c8ad4 100644
--- a/crates/vim/Cargo.toml
+++ b/crates/vim/Cargo.toml
@@ -22,7 +22,6 @@ command_palette.workspace = true
copilot.workspace = true
editor.workspace = true
gpui.workspace = true
-itertools = "0.10"
language.workspace = true
log.workspace = true
nvim-rs = { git = "https://github.com/KillTheMule/nvim-rs", branch = "master", features = [
@@ -50,8 +49,6 @@ indoc.workspace = true
language = { workspace = true, features = ["test-support"] }
lsp = { workspace = true, features = ["test-support"] }
parking_lot.workspace = true
-project = { workspace = true, features = ["test-support"] }
settings.workspace = true
-theme = { workspace = true, features = ["test-support"] }
util = { workspace = true, features = ["test-support"] }
workspace = { workspace = true, features = ["test-support"] }
diff --git a/crates/welcome/Cargo.toml b/crates/welcome/Cargo.toml
index 6b8012e0fe7..e958bf26ffa 100644
--- a/crates/welcome/Cargo.toml
+++ b/crates/welcome/Cargo.toml
@@ -15,18 +15,14 @@ test-support = []
anyhow.workspace = true
client.workspace = true
db.workspace = true
-editor.workspace = true
-fs.workspace = true
fuzzy.workspace = true
gpui.workspace = true
install_cli.workspace = true
-log.workspace = true
picker.workspace = true
project.workspace = true
schemars.workspace = true
serde.workspace = true
settings.workspace = true
-theme.workspace = true
theme_selector.workspace = true
ui.workspace = true
util.workspace = true
diff --git a/crates/workspace/Cargo.toml b/crates/workspace/Cargo.toml
index c7cb203d4ca..9182f27bf2c 100644
--- a/crates/workspace/Cargo.toml
+++ b/crates/workspace/Cargo.toml
@@ -32,7 +32,6 @@ derive_more.workspace = true
fs.workspace = true
futures.workspace = true
gpui.workspace = true
-install_cli.workspace = true
itertools = "0.10"
language.workspace = true
lazy_static.workspace = true
@@ -44,12 +43,10 @@ project.workspace = true
task.workspace = true
schemars.workspace = true
serde.workspace = true
-serde_derive.workspace = true
serde_json.workspace = true
settings.workspace = true
smallvec.workspace = true
sqlez.workspace = true
-terminal.workspace = true
theme.workspace = true
ui.workspace = true
util.workspace = true
@@ -62,6 +59,5 @@ db = { workspace = true, features = ["test-support"] }
env_logger.workspace = true
fs = { workspace = true, features = ["test-support"] }
gpui = { workspace = true, features = ["test-support"] }
-indoc.workspace = true
project = { workspace = true, features = ["test-support"] }
settings = { workspace = true, features = ["test-support"] }