Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Remove zed -> ... -> semantic_index -> zed Cargo dependency cycle
Kirill Bulatov525ff6bf7458
diff --git a/Cargo.lock b/Cargo.lockindex 01153ca0f82..85b80fa487d 100644--- a/Cargo.lock+++ b/Cargo.lock@@ -6956,7 +6956,6 @@ dependencies = ["unindent","util","workspace",- "zed",][[package]]@@ -10049,6 +10048,7 @@ name = "zed"version = "0.109.0"dependencies = ["activity_indicator",+ "ai","anyhow","assistant","async-compression",diff --git a/crates/semantic_index/Cargo.toml b/crates/semantic_index/Cargo.tomlindex 34850f7035c..1febb2af786 100644--- a/crates/semantic_index/Cargo.toml+++ b/crates/semantic_index/Cargo.toml@@ -51,7 +51,6 @@ workspace = { path = "../workspace", features = ["test-support"] }settings = { path = "../settings", features = ["test-support"]}rust-embed = { version = "8.0", features = ["include-exclude"] }client = { path = "../client" }-zed = { path = "../zed"}node_runtime = { path = "../node_runtime"}pretty_assertions.workspace = true@@ -70,6 +69,3 @@ tree-sitter-elixir.workspace = truetree-sitter-lua.workspace = truetree-sitter-ruby.workspace = truetree-sitter-php.workspace = true--[[example]]-name = "eval"diff --git a/crates/zed/Cargo.toml b/crates/zed/Cargo.tomlindex 4174f7d6d54..f9abcc1e91d 100644--- a/crates/zed/Cargo.toml+++ b/crates/zed/Cargo.toml@@ -15,6 +15,9 @@ doctest = falsename = "Zed"path = "src/main.rs"+[[example]]+name = "semantic_index_eval"+[dependencies]audio = { path = "../audio" }activity_indicator = { path = "../activity_indicator" }@@ -141,6 +144,7 @@ urlencoding = "2.1.2"uuid.workspace = true[dev-dependencies]+ai = { path = "../ai" }call = { path = "../call", features = ["test-support"] }client = { path = "../client", features = ["test-support"] }editor = { path = "../editor", features = ["test-support"] }diff --git a/crates/semantic_index/examples/eval.rs b/crates/zed/examples/semantic_index_eval.rssimilarity index 100%rename from crates/semantic_index/examples/eval.rsrename to crates/zed/examples/semantic_index_eval.rs