From f53a17b04432e3b3f03ae362ad389638e508f471 Mon Sep 17 00:00:00 2001 From: Piotr Osiewicz <24362066+osiewicz@users.noreply.github.com> Date: Tue, 7 Jan 2025 18:19:22 +0100 Subject: [PATCH] chore: Add missing test-support features to terminal_view and image_viewer (#22782) Release Notes: - N/A --- crates/assistant/Cargo.toml | 1 + crates/image_viewer/Cargo.toml | 3 +++ crates/repl/Cargo.toml | 1 + crates/terminal_view/Cargo.toml | 3 +++ crates/zed/Cargo.toml | 2 ++ 5 files changed, 10 insertions(+) diff --git a/crates/assistant/Cargo.toml b/crates/assistant/Cargo.toml index 3b68b5cc9a..456cf9dcd6 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 f194b2c495..f408d31177 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 ac22bb52d0..cc6cd7c1c8 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 7e4a4fe76f..83803ff21c 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 c25698e041..8f911b73cf 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"] }