Przeglądaj źródła

evgrd: move bin/test.rs to example/recv.rs and add example/send.rs

darkfi 1 rok temu
rodzic
commit
958b3e049b

+ 7 - 3
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"]}

+ 4 - 1
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,

+ 0 - 0
script/evgrd/bin/test.rs → script/evgrd/example/recv.rs