Extract file_finder into its own crate

This commit is contained in:
Antonio Scandurra 2021-10-05 14:30:56 +02:00
parent 1ec0afb2d1
commit cd6378e848
6 changed files with 36 additions and 2 deletions

16
Cargo.lock generated
View file

@ -1855,6 +1855,21 @@ dependencies = [
"subtle",
]
[[package]]
name = "file_finder"
version = "0.1.0"
dependencies = [
"editor",
"fuzzy",
"gpui",
"postage",
"project",
"serde_json 1.0.64",
"theme",
"util",
"workspace",
]
[[package]]
name = "filetime"
version = "0.2.14"
@ -6124,6 +6139,7 @@ dependencies = [
"easy-parallel",
"editor",
"env_logger",
"file_finder",
"fsevent",
"futures",
"fuzzy",

View file

@ -0,0 +1,18 @@
[package]
name = "file_finder"
version = "0.1.0"
edition = "2018"
[dependencies]
editor = { path = "../editor" }
fuzzy = { path = "../fuzzy" }
gpui = { path = "../gpui" }
project = { path = "../project" }
util = { path = "../util" }
theme = { path = "../theme" }
workspace = { path = "../workspace" }
postage = { version = "0.4.1", features = ["futures-traits"] }
[dev-dependencies]
serde_json = { version = "1.0.64", features = ["preserve_order"] }
workspace = { path = "../workspace", features = ["test-support"] }

View file

@ -31,6 +31,7 @@ clock = { path = "../clock" }
fsevent = { path = "../fsevent" }
fuzzy = { path = "../fuzzy" }
editor = { path = "../editor" }
file_finder = { path = "../file_finder" }
gpui = { path = "../gpui" }
project = { path = "../project" }
project_panel = { path = "../project_panel" }

View file

@ -1,5 +1,4 @@
pub mod assets;
pub mod file_finder;
pub mod language;
pub mod menus;
pub mod people_panel;

View file

@ -13,7 +13,7 @@ use zed::{
self,
assets::Assets,
client::{self, http, ChannelList, UserStore},
editor, file_finder,
editor,
fs::RealFs,
language, menus, people_panel, theme_selector, AppState, OpenParams, OpenPaths,
};