diff --git a/script/evgrd/Cargo.toml b/script/evgrd/Cargo.toml index 637e87978..e08f94123 100644 --- a/script/evgrd/Cargo.toml +++ b/script/evgrd/Cargo.toml @@ -13,9 +13,13 @@ name = "evgrd" path = "bin/evgrd.rs" required-features = ["build-daemon"] -[[bin]] -name = "test" -path = "bin/test.rs" +[[example]] +name = "recv" +path = "example/recv.rs" + +[[example]] +name = "send" +path = "example/send.rs" [dependencies] darkfi = {path = "../../", features = ["event-graph"]} diff --git a/script/evgrd/bin/evgrd.rs b/script/evgrd/bin/evgrd.rs index 9ce093f99..ed9ad6751 100644 --- a/script/evgrd/bin/evgrd.rs +++ b/script/evgrd/bin/evgrd.rs @@ -18,7 +18,10 @@ use darkfi::{ async_daemonize, cli_desc, - event_graph::{proto::{ProtocolEventGraph, EventPut}, Event, EventGraph, EventGraphPtr}, + event_graph::{ + proto::{EventPut, ProtocolEventGraph}, + Event, EventGraph, EventGraphPtr, + }, net::{ session::SESSION_DEFAULT, settings::SettingsOpt as NetSettingsOpt, diff --git a/script/evgrd/bin/test.rs b/script/evgrd/example/recv.rs similarity index 100% rename from script/evgrd/bin/test.rs rename to script/evgrd/example/recv.rs