diff --git a/Cargo.lock b/Cargo.lock index e624fe68e5..1aa003f346 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1046,6 +1046,10 @@ dependencies = [ [[package]] name = "mix_client" version = "0.1.0" +dependencies = [ + "sphinx 0.1.0", + "tokio 0.2.6 (registry+https://github.com/rust-lang/crates.io-index)", +] [[package]] name = "mockito" @@ -1129,6 +1133,7 @@ dependencies = [ "dirs 2.0.2 (registry+https://github.com/rust-lang/crates.io-index)", "futures 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)", "hex 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)", + "mix_client 0.1.0", "mockito 0.22.0 (registry+https://github.com/rust-lang/crates.io-index)", "pem 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)", "rand 0.7.2 (registry+https://github.com/rust-lang/crates.io-index)", diff --git a/client/Cargo.toml b/client/Cargo.toml index e4c1117116..f05d9d9820 100644 --- a/client/Cargo.toml +++ b/client/Cargo.toml @@ -24,11 +24,17 @@ rand_distr = "0.2.2" reqwest = "0.9.22" serde = { version = "1.0.104", features = ["derive"] } serde_json = "1.0.44" -sphinx = { path = "../../sphinx" } -sfw-provider-requests = { path = "../sfw-provider/sfw-provider-requests" } tokio = { version = "0.2", features = ["full"] } tungstenite = "0.9.2" +## internal +directory_client = { path = "directory_client" } +mix_client = { path = "mix_client" } +sfw-provider-requests = { path = "../sfw-provider/sfw-provider-requests" } + +## will be moved to proper dependencies once released +sphinx = { path = "../../sphinx" } + # putting this explicitly below everything and most likely, the next time we look into it, it will already have a proper release tokio-tungstenite = { git = "https://github.com/dbcfd/tokio-tungstenite", rev="6dc2018cbfe8fe7ddd75ff977343086503135b38" } diff --git a/client/mix_client/Cargo.toml b/client/mix_client/Cargo.toml new file mode 100644 index 0000000000..775eb96cf6 --- /dev/null +++ b/client/mix_client/Cargo.toml @@ -0,0 +1,13 @@ +[package] +name = "mix_client" +version = "0.1.0" +authors = ["Jedrzej Stuczynski ) { - let mix_client = MixClient::new(); + let mix_client = mix_client::MixClient::new(); while let Some(mix_message) = rx.next().await { println!( "[MIX TRAFFIC CONTROL] - got a mix_message for {:?}",