better cli setup
This commit is contained in:
parent
321ab18890
commit
8015bcc99f
8 changed files with 321 additions and 31 deletions
|
@ -7,13 +7,16 @@ edition = "2024"
|
|||
members = ["macros", "utils"]
|
||||
|
||||
[features]
|
||||
default = ["tokio"]
|
||||
default = []
|
||||
cli = [
|
||||
"tokio/rt-multi-thread",
|
||||
"dep:clap",
|
||||
"dep:figment",
|
||||
"dep:color-eyre",
|
||||
"dep:num_cpus",
|
||||
"figment/yaml",
|
||||
"figment/json",
|
||||
"figment/toml",
|
||||
"figment/env"
|
||||
]
|
||||
tokio = ["dep:tokio"]
|
||||
# Very long running.
|
||||
|
@ -53,7 +56,7 @@ blake3 = "1.8.2"
|
|||
slotmap = { version = "1.0.7", features = ["serde"] }
|
||||
|
||||
clap = { version = "4.5.47", features = ["derive"], optional = true }
|
||||
figment = { version = "0.10.19", features = ["json", "yaml", "env", "toml"], optional = true }
|
||||
figment = { version = "0.10.19" }
|
||||
tokio = { version = "1.47.1", features = ["rt", "sync", "macros"], optional = true }
|
||||
color-eyre = { version = "0.6.5", optional = true }
|
||||
eyre = { version = "0.6.12" }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue