mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-11 13:10:54 +00:00
Re-export zed-rpc's test support items from zed's test support
This commit is contained in:
parent
2965fce70d
commit
8b58c165a7
4 changed files with 9 additions and 3 deletions
|
@ -4,6 +4,9 @@ edition = "2018"
|
||||||
name = "zed-rpc"
|
name = "zed-rpc"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
|
|
||||||
|
[features]
|
||||||
|
test-support = []
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
anyhow = "1.0"
|
anyhow = "1.0"
|
||||||
async-lock = "2.4"
|
async-lock = "2.4"
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
pub mod auth;
|
pub mod auth;
|
||||||
mod peer;
|
mod peer;
|
||||||
pub mod proto;
|
pub mod proto;
|
||||||
#[cfg(test)]
|
#[cfg(any(test, feature = "test-support"))]
|
||||||
mod test;
|
pub mod test;
|
||||||
|
|
||||||
pub use peer::*;
|
pub use peer::*;
|
||||||
|
|
|
@ -14,7 +14,7 @@ name = "Zed"
|
||||||
path = "src/main.rs"
|
path = "src/main.rs"
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
test-support = ["tempdir", "serde_json"]
|
test-support = ["tempdir", "serde_json", "zed-rpc/test-support"]
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
anyhow = "1.0.38"
|
anyhow = "1.0.38"
|
||||||
|
|
|
@ -6,6 +6,9 @@ use std::{
|
||||||
};
|
};
|
||||||
use tempdir::TempDir;
|
use tempdir::TempDir;
|
||||||
|
|
||||||
|
#[cfg(feature = "test-support")]
|
||||||
|
pub use zed_rpc::test::Channel;
|
||||||
|
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
#[ctor::ctor]
|
#[ctor::ctor]
|
||||||
fn init_logger() {
|
fn init_logger() {
|
||||||
|
|
Loading…
Reference in a new issue