From 3da1902e24e81d472ed4389ae1f0c25715361a5f Mon Sep 17 00:00:00 2001 From: Marshall Bowers Date: Tue, 8 Oct 2024 13:07:34 -0400 Subject: [PATCH] worktree: Depend on `rpc` with `test-support` feature in tests (#18866) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This PR updates the `worktree` crate to depend on `rpc` with the `test-support` feature flag when running tests. This fixes an issue I was seeing locally when trying to run tests in the `worktree` crate: ``` λ cargo test -p worktree -- test_repository_subfolder_git_status Compiling worktree v0.1.0 (/Users/maxdeviant/projects/zed/crates/worktree) error[E0432]: unresolved import `rpc::AnyProtoClient` --> crates/worktree/src/worktree.rs:39:18 | 39 | use rpc::{proto, AnyProtoClient}; | ^^^^^^^^^^^^^^ no `AnyProtoClient` in the root For more information about this error, try `rustc --explain E0432`. error: could not compile `worktree` (lib test) due to 1 previous error ``` Release Notes: - N/A --- crates/worktree/Cargo.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/worktree/Cargo.toml b/crates/worktree/Cargo.toml index 41221d7b6e..9437358e1a 100644 --- a/crates/worktree/Cargo.toml +++ b/crates/worktree/Cargo.toml @@ -56,4 +56,5 @@ gpui = { workspace = true, features = ["test-support"] } http_client.workspace = true pretty_assertions.workspace = true rand.workspace = true +rpc = { workspace = true, features = ["test-support"] } settings = { workspace = true, features = ["test-support"] }