mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-27 12:54:42 +00:00
List path dependencies first in all Cargo.toml files
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
This commit is contained in:
parent
1d97f08901
commit
75cf2488db
9 changed files with 82 additions and 77 deletions
|
@ -7,10 +7,13 @@ edition = "2018"
|
||||||
test-support = ["rand"]
|
test-support = ["rand"]
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
anyhow = "1.0.38"
|
|
||||||
arrayvec = "0.7.1"
|
|
||||||
clock = { path = "../clock" }
|
clock = { path = "../clock" }
|
||||||
gpui = { path = "../gpui" }
|
gpui = { path = "../gpui" }
|
||||||
|
rpc = { path = "../rpc" }
|
||||||
|
sum_tree = { path = "../sum_tree" }
|
||||||
|
|
||||||
|
anyhow = "1.0.38"
|
||||||
|
arrayvec = "0.7.1"
|
||||||
lazy_static = "1.4"
|
lazy_static = "1.4"
|
||||||
log = "0.4"
|
log = "0.4"
|
||||||
parking_lot = "0.11.1"
|
parking_lot = "0.11.1"
|
||||||
|
@ -19,9 +22,7 @@ seahash = "4.1"
|
||||||
serde = { version = "1", features = ["derive"] }
|
serde = { version = "1", features = ["derive"] }
|
||||||
similar = "1.3"
|
similar = "1.3"
|
||||||
smallvec = { version = "1.6", features = ["union"] }
|
smallvec = { version = "1.6", features = ["union"] }
|
||||||
sum_tree = { path = "../sum_tree" }
|
|
||||||
tree-sitter = "0.19.5"
|
tree-sitter = "0.19.5"
|
||||||
rpc = { path = "../rpc" }
|
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
rand = "0.8.3"
|
rand = "0.8.3"
|
||||||
|
|
|
@ -7,10 +7,13 @@ edition = "2021"
|
||||||
test-support = ["buffer/test-support"]
|
test-support = ["buffer/test-support"]
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
anyhow = "1.0"
|
|
||||||
buffer = { path = "../buffer" }
|
buffer = { path = "../buffer" }
|
||||||
clock = { path = "../clock" }
|
clock = { path = "../clock" }
|
||||||
gpui = { path = "../gpui" }
|
gpui = { path = "../gpui" }
|
||||||
|
sum_tree = { path = "../sum_tree" }
|
||||||
|
util = { path = "../util" }
|
||||||
|
|
||||||
|
anyhow = "1.0"
|
||||||
lazy_static = "1.4"
|
lazy_static = "1.4"
|
||||||
log = "0.4"
|
log = "0.4"
|
||||||
parking_lot = "0.11"
|
parking_lot = "0.11"
|
||||||
|
@ -18,12 +21,11 @@ postage = { version = "0.4", features = ["futures-traits"] }
|
||||||
serde = { version = "1", features = ["derive", "rc"] }
|
serde = { version = "1", features = ["derive", "rc"] }
|
||||||
smallvec = { version = "1.6", features = ["union"] }
|
smallvec = { version = "1.6", features = ["union"] }
|
||||||
smol = "1.2"
|
smol = "1.2"
|
||||||
sum_tree = { path = "../sum_tree" }
|
|
||||||
util = { path = "../util" }
|
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
|
buffer = { path = "../buffer", features = ["test-support"] }
|
||||||
|
|
||||||
rand = "0.8"
|
rand = "0.8"
|
||||||
unindent = "0.1.7"
|
unindent = "0.1.7"
|
||||||
tree-sitter = "0.19"
|
tree-sitter = "0.19"
|
||||||
tree-sitter-rust = "0.19"
|
tree-sitter-rust = "0.19"
|
||||||
buffer = { path = "../buffer", features = ["test-support"] }
|
|
||||||
|
|
|
@ -5,8 +5,6 @@ pub mod movement;
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
mod test;
|
mod test;
|
||||||
|
|
||||||
// use crate::{project::ProjectPath, settings::Settings, theme::Theme, workspace};
|
|
||||||
|
|
||||||
use buffer::*;
|
use buffer::*;
|
||||||
use clock::ReplicaId;
|
use clock::ReplicaId;
|
||||||
pub use display_map::DisplayPoint;
|
pub use display_map::DisplayPoint;
|
||||||
|
@ -2451,36 +2449,6 @@ impl Snapshot {
|
||||||
}
|
}
|
||||||
|
|
||||||
impl EditorStyle {
|
impl EditorStyle {
|
||||||
#[cfg(any(test, feature = "test-support"))]
|
|
||||||
pub fn test(font_cache: &gpui::FontCache) -> Self {
|
|
||||||
let font_family_name = Arc::from("Monaco");
|
|
||||||
let font_properties = Default::default();
|
|
||||||
let font_family_id = font_cache.load_family(&[&font_family_name]).unwrap();
|
|
||||||
let font_id = font_cache
|
|
||||||
.select_font(font_family_id, &font_properties)
|
|
||||||
.unwrap();
|
|
||||||
Self {
|
|
||||||
text: TextStyle {
|
|
||||||
font_family_name,
|
|
||||||
font_family_id,
|
|
||||||
font_id,
|
|
||||||
font_size: 14.,
|
|
||||||
color: Color::from_u32(0xff0000ff),
|
|
||||||
font_properties,
|
|
||||||
underline: false,
|
|
||||||
},
|
|
||||||
placeholder_text: None,
|
|
||||||
background: Default::default(),
|
|
||||||
gutter_background: Default::default(),
|
|
||||||
active_line_background: Default::default(),
|
|
||||||
line_number: Default::default(),
|
|
||||||
line_number_active: Default::default(),
|
|
||||||
selection: Default::default(),
|
|
||||||
guest_selections: Default::default(),
|
|
||||||
syntax: Default::default(),
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
fn placeholder_text(&self) -> &TextStyle {
|
fn placeholder_text(&self) -> &TextStyle {
|
||||||
self.placeholder_text.as_ref().unwrap_or(&self.text)
|
self.placeholder_text.as_ref().unwrap_or(&self.text)
|
||||||
}
|
}
|
||||||
|
@ -2491,7 +2459,35 @@ impl EditorSettings {
|
||||||
pub fn test(cx: &AppContext) -> Self {
|
pub fn test(cx: &AppContext) -> Self {
|
||||||
Self {
|
Self {
|
||||||
tab_size: 4,
|
tab_size: 4,
|
||||||
style: EditorStyle::test(cx.font_cache()),
|
style: {
|
||||||
|
let font_cache: &gpui::FontCache = cx.font_cache();
|
||||||
|
let font_family_name = Arc::from("Monaco");
|
||||||
|
let font_properties = Default::default();
|
||||||
|
let font_family_id = font_cache.load_family(&[&font_family_name]).unwrap();
|
||||||
|
let font_id = font_cache
|
||||||
|
.select_font(font_family_id, &font_properties)
|
||||||
|
.unwrap();
|
||||||
|
EditorStyle {
|
||||||
|
text: TextStyle {
|
||||||
|
font_family_name,
|
||||||
|
font_family_id,
|
||||||
|
font_id,
|
||||||
|
font_size: 14.,
|
||||||
|
color: Color::from_u32(0xff0000ff),
|
||||||
|
font_properties,
|
||||||
|
underline: false,
|
||||||
|
},
|
||||||
|
placeholder_text: None,
|
||||||
|
background: Default::default(),
|
||||||
|
gutter_background: Default::default(),
|
||||||
|
active_line_background: Default::default(),
|
||||||
|
line_number: Default::default(),
|
||||||
|
line_number_active: Default::default(),
|
||||||
|
selection: Default::default(),
|
||||||
|
guest_selections: Default::default(),
|
||||||
|
syntax: Default::default(),
|
||||||
|
}
|
||||||
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,5 +2,3 @@
|
||||||
name = "fuzzy"
|
name = "fuzzy"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
edition = "2018"
|
edition = "2018"
|
||||||
|
|
||||||
[dependencies]
|
|
||||||
|
|
|
@ -8,11 +8,13 @@ version = "0.1.0"
|
||||||
test-support = []
|
test-support = []
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
|
gpui_macros = { path = "../gpui_macros" }
|
||||||
|
sum_tree = { path = "../sum_tree" }
|
||||||
|
|
||||||
async-task = "4.0.3"
|
async-task = "4.0.3"
|
||||||
backtrace = "0.3"
|
backtrace = "0.3"
|
||||||
ctor = "0.1"
|
ctor = "0.1"
|
||||||
etagere = "0.2"
|
etagere = "0.2"
|
||||||
gpui_macros = { path = "../gpui_macros" }
|
|
||||||
image = "0.23"
|
image = "0.23"
|
||||||
lazy_static = "1.4.0"
|
lazy_static = "1.4.0"
|
||||||
log = "0.4"
|
log = "0.4"
|
||||||
|
@ -30,7 +32,6 @@ serde = { version = "1.0.125", features = ["derive"] }
|
||||||
serde_json = "1.0.64"
|
serde_json = "1.0.64"
|
||||||
smallvec = { version = "1.6", features = ["union"] }
|
smallvec = { version = "1.6", features = ["union"] }
|
||||||
smol = "1.2"
|
smol = "1.2"
|
||||||
sum_tree = { path = "../sum_tree" }
|
|
||||||
time = { version = "0.3" }
|
time = { version = "0.3" }
|
||||||
tiny-skia = "0.5"
|
tiny-skia = "0.5"
|
||||||
tree-sitter = "0.19"
|
tree-sitter = "0.19"
|
||||||
|
|
|
@ -7,10 +7,13 @@ edition = "2018"
|
||||||
test-support = []
|
test-support = []
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
|
gpui = { path = "../gpui" }
|
||||||
|
util = { path = "../util" }
|
||||||
|
rpc = { path = "../rpc" }
|
||||||
|
|
||||||
anyhow = "1.0.38"
|
anyhow = "1.0.38"
|
||||||
async-recursion = "0.3"
|
async-recursion = "0.3"
|
||||||
async-tungstenite = { version = "0.14", features = ["async-tls"] }
|
async-tungstenite = { version = "0.14", features = ["async-tls"] }
|
||||||
gpui = { path = "../gpui" }
|
|
||||||
lazy_static = "1.4.0"
|
lazy_static = "1.4.0"
|
||||||
log = "0.4"
|
log = "0.4"
|
||||||
parking_lot = "0.11.1"
|
parking_lot = "0.11.1"
|
||||||
|
@ -20,5 +23,3 @@ smol = "1.2.5"
|
||||||
surf = "2.2"
|
surf = "2.2"
|
||||||
thiserror = "1.0.29"
|
thiserror = "1.0.29"
|
||||||
tiny_http = "0.8"
|
tiny_http = "0.8"
|
||||||
util = { path = "../util" }
|
|
||||||
rpc = { path = "../rpc" }
|
|
||||||
|
|
|
@ -13,6 +13,8 @@ name = "seed"
|
||||||
required-features = ["seed-support"]
|
required-features = ["seed-support"]
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
|
rpc = { path = "../rpc" }
|
||||||
|
|
||||||
anyhow = "1.0.40"
|
anyhow = "1.0.40"
|
||||||
async-std = { version = "1.8.0", features = ["attributes"] }
|
async-std = { version = "1.8.0", features = ["attributes"] }
|
||||||
async-trait = "0.1.50"
|
async-trait = "0.1.50"
|
||||||
|
@ -41,7 +43,6 @@ tide = "0.16.0"
|
||||||
tide-compress = "0.9.0"
|
tide-compress = "0.9.0"
|
||||||
time = "0.2"
|
time = "0.2"
|
||||||
toml = "0.5.8"
|
toml = "0.5.8"
|
||||||
rpc = { path = "../rpc" }
|
|
||||||
|
|
||||||
[dependencies.async-sqlx-session]
|
[dependencies.async-sqlx-session]
|
||||||
version = "0.3.0"
|
version = "0.3.0"
|
||||||
|
@ -54,9 +55,10 @@ features = ["runtime-async-std-rustls", "postgres", "time", "uuid"]
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
gpui = { path = "../gpui" }
|
gpui = { path = "../gpui" }
|
||||||
|
zed = { path = "../zed", features = ["test-support"] }
|
||||||
|
|
||||||
lazy_static = "1.4"
|
lazy_static = "1.4"
|
||||||
serde_json = { version = "1.0.64", features = ["preserve_order"] }
|
serde_json = { version = "1.0.64", features = ["preserve_order"] }
|
||||||
zed = { path = "../zed", features = ["test-support"] }
|
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
seed-support = ["lipsum"]
|
seed-support = ["lipsum"]
|
||||||
|
|
|
@ -7,32 +7,34 @@ edition = "2018"
|
||||||
test-support = []
|
test-support = []
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
anyhow = "1.0.38"
|
|
||||||
async-trait = "0.1"
|
|
||||||
buffer = { path = "../buffer" }
|
buffer = { path = "../buffer" }
|
||||||
clock = { path = "../clock" }
|
clock = { path = "../clock" }
|
||||||
fsevent = { path = "../fsevent" }
|
fsevent = { path = "../fsevent" }
|
||||||
futures = "0.3"
|
|
||||||
fuzzy = { path = "../fuzzy" }
|
fuzzy = { path = "../fuzzy" }
|
||||||
gpui = { path = "../gpui" }
|
gpui = { path = "../gpui" }
|
||||||
|
rpc_client = { path = "../rpc_client" }
|
||||||
|
sum_tree = { path = "../sum_tree" }
|
||||||
|
util = { path = "../util" }
|
||||||
|
rpc = { path = "../rpc" }
|
||||||
|
|
||||||
|
anyhow = "1.0.38"
|
||||||
|
async-trait = "0.1"
|
||||||
|
futures = "0.3"
|
||||||
ignore = "0.4"
|
ignore = "0.4"
|
||||||
lazy_static = "1.4.0"
|
lazy_static = "1.4.0"
|
||||||
libc = "0.2"
|
libc = "0.2"
|
||||||
log = "0.4"
|
log = "0.4"
|
||||||
parking_lot = "0.11.1"
|
parking_lot = "0.11.1"
|
||||||
postage = { version = "0.4.1", features = ["futures-traits"] }
|
postage = { version = "0.4.1", features = ["futures-traits"] }
|
||||||
rpc_client = { path = "../rpc_client" }
|
|
||||||
serde = { version = "1", features = ["derive"] }
|
serde = { version = "1", features = ["derive"] }
|
||||||
serde_json = { version = "1.0.64", features = ["preserve_order"] }
|
serde_json = { version = "1.0.64", features = ["preserve_order"] }
|
||||||
smol = "1.2.5"
|
smol = "1.2.5"
|
||||||
sum_tree = { path = "../sum_tree" }
|
|
||||||
util = { path = "../util" }
|
|
||||||
toml = "0.5"
|
toml = "0.5"
|
||||||
rpc = { path = "../rpc" }
|
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
rand = "0.8.3"
|
|
||||||
rpc_client = { path = "../rpc_client", features = ["test-support"] }
|
rpc_client = { path = "../rpc_client", features = ["test-support"] }
|
||||||
tempdir = { version = "0.3.7" }
|
|
||||||
util = { path = "../util", features = ["test-support"] }
|
util = { path = "../util", features = ["test-support"] }
|
||||||
rpc = { path = "../rpc", features = ["test-support"] }
|
rpc = { path = "../rpc", features = ["test-support"] }
|
||||||
|
|
||||||
|
rand = "0.8.3"
|
||||||
|
tempdir = { version = "0.3.7" }
|
||||||
|
|
|
@ -24,21 +24,27 @@ test-support = [
|
||||||
]
|
]
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
|
buffer = { path = "../buffer" }
|
||||||
|
clock = { path = "../clock" }
|
||||||
|
fsevent = { path = "../fsevent" }
|
||||||
|
fuzzy = { path = "../fuzzy" }
|
||||||
|
editor = { path = "../editor" }
|
||||||
|
gpui = { path = "../gpui" }
|
||||||
|
rpc = { path = "../rpc" }
|
||||||
|
rpc_client = { path = "../rpc_client" }
|
||||||
|
sum_tree = { path = "../sum_tree" }
|
||||||
|
util = { path = "../util" }
|
||||||
|
worktree = { path = "../worktree" }
|
||||||
|
|
||||||
anyhow = "1.0.38"
|
anyhow = "1.0.38"
|
||||||
async-recursion = "0.3"
|
async-recursion = "0.3"
|
||||||
async-trait = "0.1"
|
async-trait = "0.1"
|
||||||
async-tungstenite = { version = "0.14", features = ["async-tls"] }
|
async-tungstenite = { version = "0.14", features = ["async-tls"] }
|
||||||
buffer = { path = "../buffer" }
|
|
||||||
clock = { path = "../clock" }
|
|
||||||
crossbeam-channel = "0.5.0"
|
crossbeam-channel = "0.5.0"
|
||||||
ctor = "0.1.20"
|
ctor = "0.1.20"
|
||||||
dirs = "3.0"
|
dirs = "3.0"
|
||||||
editor = { path = "../editor" }
|
|
||||||
easy-parallel = "3.1.0"
|
easy-parallel = "3.1.0"
|
||||||
fsevent = { path = "../fsevent" }
|
|
||||||
futures = "0.3"
|
futures = "0.3"
|
||||||
fuzzy = { path = "../fuzzy" }
|
|
||||||
gpui = { path = "../gpui" }
|
|
||||||
http-auth-basic = "0.1.3"
|
http-auth-basic = "0.1.3"
|
||||||
ignore = "0.4"
|
ignore = "0.4"
|
||||||
image = "0.23"
|
image = "0.23"
|
||||||
|
@ -51,7 +57,6 @@ num_cpus = "1.13.0"
|
||||||
parking_lot = "0.11.1"
|
parking_lot = "0.11.1"
|
||||||
postage = { version = "0.4.1", features = ["futures-traits"] }
|
postage = { version = "0.4.1", features = ["futures-traits"] }
|
||||||
rand = "0.8.3"
|
rand = "0.8.3"
|
||||||
rpc_client = { path = "../rpc_client" }
|
|
||||||
rsa = "0.4"
|
rsa = "0.4"
|
||||||
rust-embed = { version = "6.2", features = ["include-exclude"] }
|
rust-embed = { version = "6.2", features = ["include-exclude"] }
|
||||||
serde = { version = "1", features = ["derive"] }
|
serde = { version = "1", features = ["derive"] }
|
||||||
|
@ -60,7 +65,6 @@ serde_path_to_error = "0.1.4"
|
||||||
simplelog = "0.9"
|
simplelog = "0.9"
|
||||||
smallvec = { version = "1.6", features = ["union"] }
|
smallvec = { version = "1.6", features = ["union"] }
|
||||||
smol = "1.2.5"
|
smol = "1.2.5"
|
||||||
sum_tree = { path = "../sum_tree" }
|
|
||||||
surf = "2.2"
|
surf = "2.2"
|
||||||
tempdir = { version = "0.3.7", optional = true }
|
tempdir = { version = "0.3.7", optional = true }
|
||||||
thiserror = "1.0.29"
|
thiserror = "1.0.29"
|
||||||
|
@ -70,23 +74,21 @@ toml = "0.5"
|
||||||
tree-sitter = "0.19.5"
|
tree-sitter = "0.19.5"
|
||||||
tree-sitter-rust = "0.19.0"
|
tree-sitter-rust = "0.19.0"
|
||||||
url = "2.2"
|
url = "2.2"
|
||||||
util = { path = "../util" }
|
|
||||||
worktree = { path = "../worktree" }
|
|
||||||
rpc = { path = "../rpc" }
|
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
|
buffer = { path = "../buffer", features = ["test-support"] }
|
||||||
|
editor = { path = "../editor", features = ["test-support"] }
|
||||||
|
gpui = { path = "../gpui", features = ["test-support"] }
|
||||||
|
rpc = { path = "../rpc", features = ["test-support"] }
|
||||||
|
rpc_client = { path = "../rpc_client", features = ["test-support"] }
|
||||||
|
util = { path = "../util", features = ["test-support"] }
|
||||||
|
worktree = { path = "../worktree", features = ["test-support"] }
|
||||||
|
|
||||||
cargo-bundle = "0.5.0"
|
cargo-bundle = "0.5.0"
|
||||||
env_logger = "0.8"
|
env_logger = "0.8"
|
||||||
serde_json = { version = "1.0.64", features = ["preserve_order"] }
|
serde_json = { version = "1.0.64", features = ["preserve_order"] }
|
||||||
tempdir = { version = "0.3.7" }
|
tempdir = { version = "0.3.7" }
|
||||||
unindent = "0.1.7"
|
unindent = "0.1.7"
|
||||||
buffer = { path = "../buffer", features = ["test-support"] }
|
|
||||||
editor = { path = "../editor", features = ["test-support"] }
|
|
||||||
gpui = { path = "../gpui", features = ["test-support"] }
|
|
||||||
rpc_client = { path = "../rpc_client", features = ["test-support"] }
|
|
||||||
util = { path = "../util", features = ["test-support"] }
|
|
||||||
worktree = { path = "../worktree", features = ["test-support"] }
|
|
||||||
rpc = { path = "../rpc", features = ["test-support"] }
|
|
||||||
|
|
||||||
[package.metadata.bundle]
|
[package.metadata.bundle]
|
||||||
icon = ["app-icon@2x.png", "app-icon.png"]
|
icon = ["app-icon@2x.png", "app-icon.png"]
|
||||||
|
|
Loading…
Reference in a new issue