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

This commit is contained in:
darkfi
2024-09-23 11:39:14 +02:00
parent 9812ea9641
commit 958b3e049b
3 changed files with 11 additions and 4 deletions

View File

@@ -13,9 +13,13 @@ name = "evgrd"
path = "bin/evgrd.rs" path = "bin/evgrd.rs"
required-features = ["build-daemon"] required-features = ["build-daemon"]
[[bin]] [[example]]
name = "test" name = "recv"
path = "bin/test.rs" path = "example/recv.rs"
[[example]]
name = "send"
path = "example/send.rs"
[dependencies] [dependencies]
darkfi = {path = "../../", features = ["event-graph"]} darkfi = {path = "../../", features = ["event-graph"]}

View File

@@ -18,7 +18,10 @@
use darkfi::{ use darkfi::{
async_daemonize, cli_desc, async_daemonize, cli_desc,
event_graph::{proto::{ProtocolEventGraph, EventPut}, Event, EventGraph, EventGraphPtr}, event_graph::{
proto::{EventPut, ProtocolEventGraph},
Event, EventGraph, EventGraphPtr,
},
net::{ net::{
session::SESSION_DEFAULT, session::SESSION_DEFAULT,
settings::SettingsOpt as NetSettingsOpt, settings::SettingsOpt as NetSettingsOpt,