Re-export zed-rpc's test support items from zed's test support
This commit is contained in:
@@ -4,6 +4,9 @@ edition = "2018"
|
||||
name = "zed-rpc"
|
||||
version = "0.1.0"
|
||||
|
||||
[features]
|
||||
test-support = []
|
||||
|
||||
[dependencies]
|
||||
anyhow = "1.0"
|
||||
async-lock = "2.4"
|
||||
|
||||
+2
-2
@@ -1,7 +1,7 @@
|
||||
pub mod auth;
|
||||
mod peer;
|
||||
pub mod proto;
|
||||
#[cfg(test)]
|
||||
mod test;
|
||||
#[cfg(any(test, feature = "test-support"))]
|
||||
pub mod test;
|
||||
|
||||
pub use peer::*;
|
||||
|
||||
+1
-1
@@ -14,7 +14,7 @@ name = "Zed"
|
||||
path = "src/main.rs"
|
||||
|
||||
[features]
|
||||
test-support = ["tempdir", "serde_json"]
|
||||
test-support = ["tempdir", "serde_json", "zed-rpc/test-support"]
|
||||
|
||||
[dependencies]
|
||||
anyhow = "1.0.38"
|
||||
|
||||
@@ -6,6 +6,9 @@ use std::{
|
||||
};
|
||||
use tempdir::TempDir;
|
||||
|
||||
#[cfg(feature = "test-support")]
|
||||
pub use zed_rpc::test::Channel;
|
||||
|
||||
#[cfg(test)]
|
||||
#[ctor::ctor]
|
||||
fn init_logger() {
|
||||
|
||||
Reference in New Issue
Block a user