Extract quick_action_bar into its own crate

This commit is contained in:
Kirill Bulatov 2023-08-11 13:23:27 +03:00
parent 0f650acc23
commit 8926c23bdb
5 changed files with 35 additions and 2 deletions

12
Cargo.lock generated
View File

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

View File

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

View File

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

View File

@ -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;