From 631d322b1444676ef5517aa8624c64924bf4863e Mon Sep 17 00:00:00 2001 From: Petko Date: Wed, 9 Nov 2022 10:27:47 +0100 Subject: [PATCH] Rename --- Cargo.lock | 24 +++++++++---------- Cargo.toml | 4 ++-- examples/Cargo.lock | 24 +++++++++---------- examples/Cargo.toml | 2 +- examples/{ping-pong => graphcast}/Cargo.toml | 2 +- examples/{ping-pong => graphcast}/src/main.rs | 0 examples/toy-chat/src/main.rs | 2 +- 7 files changed, 29 insertions(+), 29 deletions(-) rename examples/{ping-pong => graphcast}/Cargo.toml (93%) rename examples/{ping-pong => graphcast}/src/main.rs (100%) diff --git a/Cargo.lock b/Cargo.lock index dec79e1..a109b68 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -464,6 +464,18 @@ version = "0.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9b919933a397b79c37e33b77bb2aa3dc8eb6e165ad809e58ff75bc7db2e34574" +[[package]] +name = "graphcast" +version = "0.1.0" +dependencies = [ + "chrono", + "once_cell", + "prost", + "serde", + "serde_json", + "waku", +] + [[package]] name = "hashbrown" version = "0.12.3" @@ -784,18 +796,6 @@ version = "2.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "478c572c3d73181ff3c2539045f6eb99e5491218eae919370993b890cdbdd98e" -[[package]] -name = "ping-pong" -version = "0.1.0" -dependencies = [ - "chrono", - "once_cell", - "prost", - "serde", - "serde_json", - "waku", -] - [[package]] name = "polyval" version = "0.6.0" diff --git a/Cargo.toml b/Cargo.toml index 95bb1ab..8830079 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -4,5 +4,5 @@ members = [ "waku-bindings", "waku-sys", "examples/toy-chat", - "examples/ping-pong", -] \ No newline at end of file + "examples/graphcast", +] diff --git a/examples/Cargo.lock b/examples/Cargo.lock index 0c4b13b..0eae5c5 100644 --- a/examples/Cargo.lock +++ b/examples/Cargo.lock @@ -464,6 +464,18 @@ version = "0.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9b919933a397b79c37e33b77bb2aa3dc8eb6e165ad809e58ff75bc7db2e34574" +[[package]] +name = "graphcast" +version = "0.1.0" +dependencies = [ + "chrono", + "once_cell", + "prost", + "serde", + "serde_json", + "waku", +] + [[package]] name = "hashbrown" version = "0.12.3" @@ -784,18 +796,6 @@ version = "2.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "478c572c3d73181ff3c2539045f6eb99e5491218eae919370993b890cdbdd98e" -[[package]] -name = "ping-pong" -version = "0.1.0" -dependencies = [ - "chrono", - "once_cell", - "prost", - "serde", - "serde_json", - "waku", -] - [[package]] name = "polyval" version = "0.6.0" diff --git a/examples/Cargo.toml b/examples/Cargo.toml index 814b779..d37183a 100644 --- a/examples/Cargo.toml +++ b/examples/Cargo.toml @@ -2,5 +2,5 @@ members = [ "toy-chat", - "ping-pong" + "graphcast" ] diff --git a/examples/ping-pong/Cargo.toml b/examples/graphcast/Cargo.toml similarity index 93% rename from examples/ping-pong/Cargo.toml rename to examples/graphcast/Cargo.toml index 2a41eb6..46a71ae 100644 --- a/examples/ping-pong/Cargo.toml +++ b/examples/graphcast/Cargo.toml @@ -1,5 +1,5 @@ [package] -name = "ping-pong" +name = "graphcast" version = "0.1.0" edition = "2021" diff --git a/examples/ping-pong/src/main.rs b/examples/graphcast/src/main.rs similarity index 100% rename from examples/ping-pong/src/main.rs rename to examples/graphcast/src/main.rs diff --git a/examples/toy-chat/src/main.rs b/examples/toy-chat/src/main.rs index 42906c0..da68b96 100644 --- a/examples/toy-chat/src/main.rs +++ b/examples/toy-chat/src/main.rs @@ -112,7 +112,7 @@ fn setup_node_handle() -> std::result::Result, Box std::result::Result<(), Box> { - let nick = std::env::args().nth(1).expect("Nick to be set"); + let nick = String::from("nickey"); // setup terminal enable_raw_mode()?; let mut stdout = io::stdout();