Extract quick_action_bar into its own crate

Kirill Bulatov created

Change summary

Cargo.lock                                      | 12 ++++++++++
crates/quick_action_bar/Cargo.toml              | 22 +++++++++++++++++++
crates/quick_action_bar/src/quick_action_bar.rs |  0 
crates/zed/Cargo.toml                           |  1 
crates/zed/src/zed.rs                           |  2 -
5 files changed, 35 insertions(+), 2 deletions(-)

Detailed changes

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",

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"] }

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" }

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;