add crate cli_helpers with option and config parsing; use in aquatic

Putting cli functionality into its own crate will allow using it
from aquatic_bench and possibly other programs.
This commit is contained in:
Joakim Frostegård 2020-04-09 16:46:35 +02:00
parent 06756f1c74
commit ac52668a3d
9 changed files with 147 additions and 10 deletions

38
Cargo.lock generated
View file

@ -18,11 +18,18 @@ dependencies = [
"memchr",
]
[[package]]
name = "anyhow"
version = "1.0.28"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d9a60d744a80c30fcb657dfe2c1b22bcb3e814c1a1e3674f32bf5820b570fbff"
[[package]]
name = "aquatic"
version = "0.1.0"
dependencies = [
"bittorrent_udp",
"cli_helpers",
"dashmap",
"histogram",
"indexmap",
@ -32,6 +39,7 @@ dependencies = [
"quickcheck",
"quickcheck_macros",
"rand",
"serde",
]
[[package]]
@ -142,6 +150,16 @@ version = "0.1.10"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4785bdd1c96b2a846b2bd7cc02e86b6b3dbf14e7e53446c4f54c92a361040822"
[[package]]
name = "cli_helpers"
version = "0.1.0"
dependencies = [
"anyhow",
"gumdrop",
"serde",
"toml",
]
[[package]]
name = "clicolors-control"
version = "1.0.1"
@ -237,6 +255,26 @@ dependencies = [
"wasi",
]
[[package]]
name = "gumdrop"
version = "0.7.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ee50908bc1beeac1f2902e0b4e0cd0d844e716f5ebdc6f0cfc1163fe5e10bcde"
dependencies = [
"gumdrop_derive",
]
[[package]]
name = "gumdrop_derive"
version = "0.7.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "90454ce4de40b7ca6a8968b5ef367bdab48413962588d0d2b1638d60090c35d7"
dependencies = [
"proc-macro2",
"quote",
"syn",
]
[[package]]
name = "hermit-abi"
version = "0.1.10"