rename crate "cli_helpers" to "aquatic_cli_helpers"

This commit is contained in:
Joakim Frostegård 2020-05-25 19:27:22 +02:00
parent bc4ada104d
commit 2f13e1e1a8
12 changed files with 25 additions and 25 deletions

28
Cargo.lock generated
View file

@ -21,6 +21,16 @@ version = "1.0.31"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "85bb70cc08ec97ca5450e6eba421deeea5f172c0fc61f78b5357b2a8e8be195f" checksum = "85bb70cc08ec97ca5450e6eba421deeea5f172c0fc61f78b5357b2a8e8be195f"
[[package]]
name = "aquatic_cli_helpers"
version = "0.1.0"
dependencies = [
"anyhow",
"gumdrop",
"serde",
"toml",
]
[[package]] [[package]]
name = "aquatic_common" name = "aquatic_common"
version = "0.1.0" version = "0.1.0"
@ -34,9 +44,9 @@ name = "aquatic_udp"
version = "0.1.0" version = "0.1.0"
dependencies = [ dependencies = [
"anyhow", "anyhow",
"aquatic_cli_helpers",
"aquatic_common", "aquatic_common",
"aquatic_udp_protocol", "aquatic_udp_protocol",
"cli_helpers",
"crossbeam-channel", "crossbeam-channel",
"hashbrown", "hashbrown",
"histogram", "histogram",
@ -57,8 +67,8 @@ name = "aquatic_udp_bench"
version = "0.1.0" version = "0.1.0"
dependencies = [ dependencies = [
"anyhow", "anyhow",
"aquatic_cli_helpers",
"aquatic_udp", "aquatic_udp",
"cli_helpers",
"crossbeam-channel", "crossbeam-channel",
"indicatif", "indicatif",
"mimalloc", "mimalloc",
@ -74,8 +84,8 @@ name = "aquatic_udp_load_test"
version = "0.1.0" version = "0.1.0"
dependencies = [ dependencies = [
"anyhow", "anyhow",
"aquatic_cli_helpers",
"aquatic_udp_protocol", "aquatic_udp_protocol",
"cli_helpers",
"crossbeam-channel", "crossbeam-channel",
"hashbrown", "hashbrown",
"mimalloc", "mimalloc",
@ -103,8 +113,8 @@ name = "aquatic_ws"
version = "0.1.0" version = "0.1.0"
dependencies = [ dependencies = [
"anyhow", "anyhow",
"aquatic_cli_helpers",
"aquatic_common", "aquatic_common",
"cli_helpers",
"either", "either",
"flume", "flume",
"hashbrown", "hashbrown",
@ -257,16 +267,6 @@ dependencies = [
"time", "time",
] ]
[[package]]
name = "cli_helpers"
version = "0.1.0"
dependencies = [
"anyhow",
"gumdrop",
"serde",
"toml",
]
[[package]] [[package]]
name = "cloudabi" name = "cloudabi"
version = "0.0.3" version = "0.0.3"

View file

@ -1,13 +1,13 @@
[workspace] [workspace]
members = [ members = [
"aquatic_cli_helpers",
"aquatic_common", "aquatic_common",
"aquatic_udp", "aquatic_udp",
"aquatic_udp_bench", "aquatic_udp_bench",
"aquatic_udp_load_test", "aquatic_udp_load_test",
"aquatic_udp_protocol", "aquatic_udp_protocol",
"aquatic_ws", "aquatic_ws",
"cli_helpers",
] ]
[profile.release] [profile.release]

View file

@ -1,5 +1,5 @@
[package] [package]
name = "cli_helpers" name = "aquatic_cli_helpers"
version = "0.1.0" version = "0.1.0"
authors = ["Joakim Frostegård <joakim.frostegard@gmail.com>"] authors = ["Joakim Frostegård <joakim.frostegard@gmail.com>"]
edition = "2018" edition = "2018"

View file

@ -14,9 +14,9 @@ name = "aquatic_udp"
[dependencies] [dependencies]
anyhow = "1" anyhow = "1"
aquatic_cli_helpers = { path = "../aquatic_cli_helpers" }
aquatic_common = { path = "../aquatic_common" } aquatic_common = { path = "../aquatic_common" }
aquatic_udp_protocol = { path = "../aquatic_udp_protocol" } aquatic_udp_protocol = { path = "../aquatic_udp_protocol" }
cli_helpers = { path = "../cli_helpers" }
crossbeam-channel = "0.4" crossbeam-channel = "0.4"
hashbrown = "0.7" hashbrown = "0.7"
histogram = "0.6" histogram = "0.6"

View file

@ -1,5 +1,5 @@
use aquatic_udp; use aquatic_udp;
use cli_helpers; use aquatic_cli_helpers;
#[global_allocator] #[global_allocator]
@ -7,7 +7,7 @@ static GLOBAL: mimalloc::MiMalloc = mimalloc::MiMalloc;
fn main(){ fn main(){
cli_helpers::run_app_with_cli_and_config::<aquatic_udp::config::Config>( aquatic_cli_helpers::run_app_with_cli_and_config::<aquatic_udp::config::Config>(
"aquatic: udp bittorrent tracker", "aquatic: udp bittorrent tracker",
aquatic_udp::run, aquatic_udp::run,
) )

View file

@ -16,8 +16,8 @@ name = "plot_pareto"
[dependencies] [dependencies]
anyhow = "1" anyhow = "1"
aquatic_cli_helpers = { path = "../aquatic_cli_helpers" }
aquatic_udp = { path = "../aquatic_udp" } aquatic_udp = { path = "../aquatic_udp" }
cli_helpers = { path = "../cli_helpers" }
crossbeam-channel = "0.4" crossbeam-channel = "0.4"
indicatif = "0.14" indicatif = "0.14"
mimalloc = { version = "0.1", default-features = false } mimalloc = { version = "0.1", default-features = false }

View file

@ -22,7 +22,7 @@ use rand::{Rng, thread_rng, rngs::SmallRng, SeedableRng};
use aquatic_udp::common::*; use aquatic_udp::common::*;
use aquatic_udp::config::Config; use aquatic_udp::config::Config;
use aquatic_udp::handlers; use aquatic_udp::handlers;
use cli_helpers::run_app_with_cli_and_config; use aquatic_cli_helpers::run_app_with_cli_and_config;
use config::BenchConfig; use config::BenchConfig;

View file

@ -10,8 +10,8 @@ name = "aquatic_udp_load_test"
[dependencies] [dependencies]
anyhow = "1" anyhow = "1"
aquatic_cli_helpers = { path = "../aquatic_cli_helpers" }
aquatic_udp_protocol = { path = "../aquatic_udp_protocol" } aquatic_udp_protocol = { path = "../aquatic_udp_protocol" }
cli_helpers = { path = "../cli_helpers" }
crossbeam-channel = "0.4" crossbeam-channel = "0.4"
hashbrown = "0.7" hashbrown = "0.7"
mimalloc = { version = "0.1", default-features = false } mimalloc = { version = "0.1", default-features = false }

View file

@ -25,7 +25,7 @@ static GLOBAL: mimalloc::MiMalloc = mimalloc::MiMalloc;
pub fn main(){ pub fn main(){
cli_helpers::run_app_with_cli_and_config::<Config>( aquatic_cli_helpers::run_app_with_cli_and_config::<Config>(
"aquatic: udp bittorrent tracker: load tester", "aquatic: udp bittorrent tracker: load tester",
run, run,
) )

View file

@ -15,8 +15,8 @@ path = "src/bin/main.rs"
[dependencies] [dependencies]
anyhow = "1" anyhow = "1"
aquatic_cli_helpers = { path = "../aquatic_cli_helpers" }
aquatic_common = { path = "../aquatic_common" } aquatic_common = { path = "../aquatic_common" }
cli_helpers = { path = "../cli_helpers" }
either = "1" either = "1"
flume = "0.7" flume = "0.7"
hashbrown = { version = "0.7", features = ["serde"] } hashbrown = { version = "0.7", features = ["serde"] }

View file

@ -1,5 +1,5 @@
use anyhow::Context; use anyhow::Context;
use cli_helpers::run_app_with_cli_and_config; use aquatic_cli_helpers::run_app_with_cli_and_config;
use simplelog::{ConfigBuilder, LevelFilter, TermLogger, TerminalMode}; use simplelog::{ConfigBuilder, LevelFilter, TermLogger, TerminalMode};
use aquatic_ws::config::{Config, LogLevel}; use aquatic_ws::config::{Config, LogLevel};