mirror of
https://github.com/YGGverse/aquatic.git
synced 2026-03-31 09:45:31 +00:00
rename crate "cli_helpers" to "aquatic_cli_helpers"
This commit is contained in:
parent
bc4ada104d
commit
2f13e1e1a8
12 changed files with 25 additions and 25 deletions
28
Cargo.lock
generated
28
Cargo.lock
generated
|
|
@ -21,6 +21,16 @@ version = "1.0.31"
|
|||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "85bb70cc08ec97ca5450e6eba421deeea5f172c0fc61f78b5357b2a8e8be195f"
|
||||
|
||||
[[package]]
|
||||
name = "aquatic_cli_helpers"
|
||||
version = "0.1.0"
|
||||
dependencies = [
|
||||
"anyhow",
|
||||
"gumdrop",
|
||||
"serde",
|
||||
"toml",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "aquatic_common"
|
||||
version = "0.1.0"
|
||||
|
|
@ -34,9 +44,9 @@ name = "aquatic_udp"
|
|||
version = "0.1.0"
|
||||
dependencies = [
|
||||
"anyhow",
|
||||
"aquatic_cli_helpers",
|
||||
"aquatic_common",
|
||||
"aquatic_udp_protocol",
|
||||
"cli_helpers",
|
||||
"crossbeam-channel",
|
||||
"hashbrown",
|
||||
"histogram",
|
||||
|
|
@ -57,8 +67,8 @@ name = "aquatic_udp_bench"
|
|||
version = "0.1.0"
|
||||
dependencies = [
|
||||
"anyhow",
|
||||
"aquatic_cli_helpers",
|
||||
"aquatic_udp",
|
||||
"cli_helpers",
|
||||
"crossbeam-channel",
|
||||
"indicatif",
|
||||
"mimalloc",
|
||||
|
|
@ -74,8 +84,8 @@ name = "aquatic_udp_load_test"
|
|||
version = "0.1.0"
|
||||
dependencies = [
|
||||
"anyhow",
|
||||
"aquatic_cli_helpers",
|
||||
"aquatic_udp_protocol",
|
||||
"cli_helpers",
|
||||
"crossbeam-channel",
|
||||
"hashbrown",
|
||||
"mimalloc",
|
||||
|
|
@ -103,8 +113,8 @@ name = "aquatic_ws"
|
|||
version = "0.1.0"
|
||||
dependencies = [
|
||||
"anyhow",
|
||||
"aquatic_cli_helpers",
|
||||
"aquatic_common",
|
||||
"cli_helpers",
|
||||
"either",
|
||||
"flume",
|
||||
"hashbrown",
|
||||
|
|
@ -257,16 +267,6 @@ dependencies = [
|
|||
"time",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "cli_helpers"
|
||||
version = "0.1.0"
|
||||
dependencies = [
|
||||
"anyhow",
|
||||
"gumdrop",
|
||||
"serde",
|
||||
"toml",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "cloudabi"
|
||||
version = "0.0.3"
|
||||
|
|
|
|||
|
|
@ -1,13 +1,13 @@
|
|||
[workspace]
|
||||
|
||||
members = [
|
||||
"aquatic_cli_helpers",
|
||||
"aquatic_common",
|
||||
"aquatic_udp",
|
||||
"aquatic_udp_bench",
|
||||
"aquatic_udp_load_test",
|
||||
"aquatic_udp_protocol",
|
||||
"aquatic_ws",
|
||||
"cli_helpers",
|
||||
]
|
||||
|
||||
[profile.release]
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
[package]
|
||||
name = "cli_helpers"
|
||||
name = "aquatic_cli_helpers"
|
||||
version = "0.1.0"
|
||||
authors = ["Joakim Frostegård <joakim.frostegard@gmail.com>"]
|
||||
edition = "2018"
|
||||
|
|
@ -14,9 +14,9 @@ name = "aquatic_udp"
|
|||
|
||||
[dependencies]
|
||||
anyhow = "1"
|
||||
aquatic_cli_helpers = { path = "../aquatic_cli_helpers" }
|
||||
aquatic_common = { path = "../aquatic_common" }
|
||||
aquatic_udp_protocol = { path = "../aquatic_udp_protocol" }
|
||||
cli_helpers = { path = "../cli_helpers" }
|
||||
crossbeam-channel = "0.4"
|
||||
hashbrown = "0.7"
|
||||
histogram = "0.6"
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
use aquatic_udp;
|
||||
use cli_helpers;
|
||||
use aquatic_cli_helpers;
|
||||
|
||||
|
||||
#[global_allocator]
|
||||
|
|
@ -7,7 +7,7 @@ static GLOBAL: mimalloc::MiMalloc = mimalloc::MiMalloc;
|
|||
|
||||
|
||||
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::run,
|
||||
)
|
||||
|
|
|
|||
|
|
@ -16,8 +16,8 @@ name = "plot_pareto"
|
|||
|
||||
[dependencies]
|
||||
anyhow = "1"
|
||||
aquatic_cli_helpers = { path = "../aquatic_cli_helpers" }
|
||||
aquatic_udp = { path = "../aquatic_udp" }
|
||||
cli_helpers = { path = "../cli_helpers" }
|
||||
crossbeam-channel = "0.4"
|
||||
indicatif = "0.14"
|
||||
mimalloc = { version = "0.1", default-features = false }
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ use rand::{Rng, thread_rng, rngs::SmallRng, SeedableRng};
|
|||
use aquatic_udp::common::*;
|
||||
use aquatic_udp::config::Config;
|
||||
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;
|
||||
|
||||
|
|
|
|||
|
|
@ -10,8 +10,8 @@ name = "aquatic_udp_load_test"
|
|||
|
||||
[dependencies]
|
||||
anyhow = "1"
|
||||
aquatic_cli_helpers = { path = "../aquatic_cli_helpers" }
|
||||
aquatic_udp_protocol = { path = "../aquatic_udp_protocol" }
|
||||
cli_helpers = { path = "../cli_helpers" }
|
||||
crossbeam-channel = "0.4"
|
||||
hashbrown = "0.7"
|
||||
mimalloc = { version = "0.1", default-features = false }
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ static GLOBAL: mimalloc::MiMalloc = mimalloc::MiMalloc;
|
|||
|
||||
|
||||
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",
|
||||
run,
|
||||
)
|
||||
|
|
|
|||
|
|
@ -15,8 +15,8 @@ path = "src/bin/main.rs"
|
|||
|
||||
[dependencies]
|
||||
anyhow = "1"
|
||||
aquatic_cli_helpers = { path = "../aquatic_cli_helpers" }
|
||||
aquatic_common = { path = "../aquatic_common" }
|
||||
cli_helpers = { path = "../cli_helpers" }
|
||||
either = "1"
|
||||
flume = "0.7"
|
||||
hashbrown = { version = "0.7", features = ["serde"] }
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
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 aquatic_ws::config::{Config, LogLevel};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue