Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Extract quick_action_bar into its own crate
Kirill Bulatov8926c23bdbed
diff --git a/Cargo.lock b/Cargo.lockindex 1b54bdda02a..51ca31bd9da 100644--- a/Cargo.lock+++ b/Cargo.lock@@ -5714,6 +5714,17 @@ dependencies = ["memchr",]+[[package]]+name = "quick_action_bar"+version = "0.1.0"+dependencies = [+ "editor",+ "gpui",+ "search",+ "theme",+ "workspace",+]+[[package]]name = "quote"version = "1.0.32"@@ -9922,6 +9933,7 @@ dependencies = ["project","project_panel","project_symbols",+ "quick_action_bar","rand 0.8.5","recent_projects","regex",diff --git a/crates/quick_action_bar/Cargo.toml b/crates/quick_action_bar/Cargo.tomlnew file mode 100644index 00000000000..6953ac0e028--- /dev/null+++ b/crates/quick_action_bar/Cargo.toml@@ -0,0 +1,22 @@+[package]+name = "quick_action_bar"+version = "0.1.0"+edition = "2021"+publish = false++[lib]+path = "src/quick_action_bar.rs"+doctest = false++[dependencies]+editor = { path = "../editor" }+gpui = { path = "../gpui" }+search = { path = "../search" }+theme = { path = "../theme" }+workspace = { path = "../workspace" }++[dev-dependencies]+editor = { path = "../editor", features = ["test-support"] }+gpui = { path = "../gpui", features = ["test-support"] }+theme = { path = "../theme", features = ["test-support"] }+workspace = { path = "../workspace", features = ["test-support"] }diff --git a/crates/zed/src/quick_action_bar.rs b/crates/quick_action_bar/src/quick_action_bar.rssimilarity index 100%rename from crates/zed/src/quick_action_bar.rsrename to crates/quick_action_bar/src/quick_action_bar.rsdiff --git a/crates/zed/Cargo.toml b/crates/zed/Cargo.tomlindex d0aebb15e75..988648d4b15 100644--- a/crates/zed/Cargo.toml+++ b/crates/zed/Cargo.toml@@ -54,6 +54,7 @@ plugin_runtime = { path = "../plugin_runtime",optional = true }project = { path = "../project" }project_panel = { path = "../project_panel" }project_symbols = { path = "../project_symbols" }+quick_action_bar = { path = "../quick_action_bar" }recent_projects = { path = "../recent_projects" }rpc = { path = "../rpc" }settings = { path = "../settings" }diff --git a/crates/zed/src/zed.rs b/crates/zed/src/zed.rsindex 47dff41729b..8d851909b31 100644--- a/crates/zed/src/zed.rs+++ b/crates/zed/src/zed.rs@@ -5,8 +5,6 @@ pub mod only_instance;#[cfg(any(test, feature = "test-support"))]pub mod test;-mod quick_action_bar;-use ai::AssistantPanel;use anyhow::Context;use assets::Assets;