diff options
author | Stuart Stock <stuart@int08h.com> | 2018-10-07 15:27:28 -0500 |
---|---|---|
committer | Stuart Stock <stuart@int08h.com> | 2018-10-07 15:27:28 -0500 |
commit | b43bcb27ad303afd56cfe1d767e95c10cf3d1cb2 (patch) | |
tree | d27910dd465085a42a01b212aaeea64d1197b014 | |
parent | 7875dda06327f771cd67eb135b381e6d87c228de (diff) | |
download | roughenough-b43bcb27ad303afd56cfe1d767e95c10cf3d1cb2.zip |
Give client and server binaries more distinctive names
As pointed out in #10, the binary names are quite generic. Rename
`client` to `roughenough-client` and `server` to `roughenough-server`.
Fixes #10
-rw-r--r-- | Cargo.toml | 2 | ||||
-rw-r--r-- | README.md | 20 | ||||
-rw-r--r-- | src/bin/roughenough-client.rs (renamed from src/bin/client.rs) | 0 | ||||
-rw-r--r-- | src/bin/roughenough-server.rs (renamed from src/bin/server.rs) | 0 | ||||
-rw-r--r-- | src/lib.rs | 2 |
5 files changed, 12 insertions, 12 deletions
@@ -1,6 +1,6 @@ [package] name = "roughenough" -version = "1.0.5" +version = "1.0.6" repository = "https://github.com/int08h/roughenough" authors = ["Stuart Stock <stuart@int08h.com>", "Aaron Hill <aa1ronham@gmail.com>"] license = "Apache-2.0" @@ -29,17 +29,17 @@ Requires the latest stable Rust to build. $ cargo build --release ``` -The client binary is `target/release/client`. After building you can copy the +The client binary is `target/release/roughenough-client`. After building you can copy the binary and run on its own (no `cargo` needed) if you wish. ```bash -$ cp target/release/server /usr/local/bin +$ cp target/release/roughenough-server /usr/local/bin ``` ### Using the Client to Query a Roughtime Server ```bash -$ target/release/client roughtime.int08h.com 2002 +$ target/release/roughenough-client roughtime.int08h.com 2002 Requesting time from: "roughtime.int08h.com":2002 Received time from server: midpoint="Jul 28 2018 15:21:31", radius=1000000 (merkle_index=0, verified=false) ``` @@ -54,7 +54,7 @@ $ host -t TXT roughtime.int08h.com roughtime.int08h.com descriptive text "016e6e0284d24c37c6e4d7d8d5b4e1d3c1949ceaa545bf875616c9dce0c9bec1" # Validate the server response using its public key -$ target/release/client roughtime.int08h.com 2002 -p 016e6e0284d24c37c6e4d7d8d5b4e1d3c1949ceaa545bf875616c9dce0c9bec1 +$ target/release/roughenough-client roughtime.int08h.com 2002 -p 016e6e0284d24c37c6e4d7d8d5b4e1d3c1949ceaa545bf875616c9dce0c9bec1 Requesting time from: "roughtime.int08h.com":2002 Received time from server: midpoint="Jul 28 2018 15:26:54", radius=1000000 (merkle_index=0, verified=true) ``` @@ -91,7 +91,7 @@ seed: f61075c988feb9cb700a4a6a3291bfbc9cab11b9c9eca8c802468eb38a43d7d3 Provide the config file as the single command-line argument to the Roughenough server binary: ```bash -$ /path/to/server /path/to/config.yaml +$ /path/to/roughenough-server /path/to/config.yaml ``` #### Environment Configuration @@ -104,7 +104,7 @@ from the environment. Example: $ export ROUGHENOUGH_INTERFACE=127.0.0.1 $ export ROUGHENOUGH_PORT=8686 $ export ROUGHENOUGH_SEED=f61075c988feb9cb700a4a6a3291bfbc9cab11b9c9eca8c802468eb38a43d7d3 -$ /path/to/server ENV +$ /path/to/roughenough-server ENV ``` ### Starting the Server @@ -113,7 +113,7 @@ $ /path/to/server ENV $ cargo build --release # Via a config file -$ target/release/server example.cfg +$ target/release/roughenough-server example.cfg 2018-07-25 00:05:09 INFO [server] Roughenough server v1.0.5 starting 2018-07-25 00:05:09 INFO [server] Long-term public key: d0756ee69ff5fe96cbcf9273208fec53124b1dd3a24d3910e07c7c54e2473012 2018-07-25 00:05:09 INFO [server] Ephemeral public key: 25fd5dc31ceee241aed3e643534e95ed0609e9a20982a45ac0312a5f55e2cc66 @@ -123,18 +123,18 @@ $ target/release/server example.cfg $ export ROUGHENOUGH_INTERFACE=127.0.0.1 $ export ROUGHENOUGH_PORT=8686 $ export ROUGHENOUGH_SEED=f61075c988feb9cb700a4a6a3291bfbc9cab11b9c9eca8c802468eb38a43d7d3 -$ target/release/server ENV +$ target/release/roughenough-server ENV 2018-07-25 00:05:09 INFO [server] Roughenough server v1.0.5 starting 2018-07-25 00:05:09 INFO [server] Long-term public key: d0756ee69ff5fe96cbcf9273208fec53124b1dd3a24d3910e07c7c54e2473012 2018-07-25 00:05:09 INFO [server] Ephemeral public key: 25fd5dc31ceee241aed3e643534e95ed0609e9a20982a45ac0312a5f55e2cc66 2018-07-25 00:05:09 INFO [server] Server listening on 127.0.0.1:8686 ``` -The resulting binary is `target/release/server`. After building you can copy the +The resulting binary is `target/release/roughenough-server`. After building you can copy the binary and run on its own (no `cargo` needed): ```bash -$ cp target/release/server /usr/local/bin +$ cp target/release/roughenough-server /usr/local/bin ``` ### Stopping the Server diff --git a/src/bin/client.rs b/src/bin/roughenough-client.rs index 75ebe14..75ebe14 100644 --- a/src/bin/client.rs +++ b/src/bin/roughenough-client.rs diff --git a/src/bin/server.rs b/src/bin/roughenough-server.rs index 13a7026..13a7026 100644 --- a/src/bin/server.rs +++ b/src/bin/roughenough-server.rs @@ -70,7 +70,7 @@ pub use message::RtMessage; pub use tag::Tag; /// Version of Roughenough -pub const VERSION: &str = "1.0.5"; +pub const VERSION: &str = "1.0.6"; // Constants and magic numbers of the Roughtime protocol |