Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

chore: Add missing test-support features to terminal_view and image_viewer (#22782)

Piotr Osiewiczf53a17b04432
diff --git a/crates/assistant/Cargo.toml b/crates/assistant/Cargo.toml
index 3b68b5cc9a0..456cf9dcd6e 100644
--- a/crates/assistant/Cargo.toml
+++ b/crates/assistant/Cargo.toml
@@ -103,6 +103,7 @@ pretty_assertions.workspace = true
project = { workspace = true, features = ["test-support"] }
rand.workspace = true
serde_json_lenient.workspace = true
+terminal_view = { workspace = true, features = ["test-support"] }
text = { workspace = true, features = ["test-support"] }
tree-sitter-md.workspace = true
unindent.workspace = true
diff --git a/crates/image_viewer/Cargo.toml b/crates/image_viewer/Cargo.toml
index f194b2c4956..f408d31177d 100644
--- a/crates/image_viewer/Cargo.toml
+++ b/crates/image_viewer/Cargo.toml
@@ -24,3 +24,6 @@ theme.workspace = true
ui.workspace = true
util.workspace = true
workspace.workspace = true
+
+[features]
+test-support = ["gpui/test-support"]
diff --git a/crates/repl/Cargo.toml b/crates/repl/Cargo.toml
index ac22bb52d09..cc6cd7c1c84 100644
--- a/crates/repl/Cargo.toml
+++ b/crates/repl/Cargo.toml
@@ -63,6 +63,7 @@ language = { workspace = true, features = ["test-support"] }
languages = { workspace = true, features = ["test-support"] }
project = { workspace = true, features = ["test-support"] }
settings = { workspace = true, features = ["test-support"] }
+terminal_view = { workspace = true, features = ["test-support"] }
theme = { workspace = true, features = ["test-support"] }
tree-sitter-md.workspace = true
tree-sitter-typescript.workspace = true
diff --git a/crates/terminal_view/Cargo.toml b/crates/terminal_view/Cargo.toml
index 7e4a4fe76ff..83803ff21c9 100644
--- a/crates/terminal_view/Cargo.toml
+++ b/crates/terminal_view/Cargo.toml
@@ -8,6 +8,9 @@ license = "GPL-3.0-or-later"
[lints]
workspace = true
+[features]
+test-support = ["editor/test-support", "gpui/test-support"]
+
[lib]
path = "src/terminal_view.rs"
doctest = false
diff --git a/crates/zed/Cargo.toml b/crates/zed/Cargo.toml
index c25698e0417..8f911b73cfd 100644
--- a/crates/zed/Cargo.toml
+++ b/crates/zed/Cargo.toml
@@ -143,8 +143,10 @@ ashpd.workspace = true
call = { workspace = true, features = ["test-support"] }
editor = { workspace = true, features = ["test-support"] }
gpui = { workspace = true, features = ["test-support"] }
+image_viewer = { workspace = true, features = ["test-support"] }
language = { workspace = true, features = ["test-support"] }
project = { workspace = true, features = ["test-support"] }
+terminal_view = { workspace = true, features = ["test-support"] }
tree-sitter-md.workspace = true
tree-sitter-rust.workspace = true
workspace = { workspace = true, features = ["test-support"] }