diff options
author | Clement Tsang <34804052+ClementTsang@users.noreply.github.com> | 2024-01-10 19:07:22 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-10 19:07:22 -0500 |
commit | 6b6217655479df639c9ad7f6324939eae4f81cea (patch) | |
tree | b04542fb162a4daa443118520af8809cdb4855d0 /Cargo.toml | |
parent | 0f969fcfd4409f8045357298c5229500cf720cba (diff) |
refactor: rearrange/resort args (#1376)
* clean up Cargo.toml
* some small cleanup
* refactor: group together similar args in the help generation and code
This groups together related arguments in both the help text and the
code itself.
* update changelog
* clippy
* builder pattern instead
Diffstat (limited to 'Cargo.toml')
-rw-r--r-- | Cargo.toml | 25 |
1 files changed, 13 insertions, 12 deletions
@@ -64,23 +64,20 @@ strip = false [features] battery = ["starship-battery"] -gpu = ["nvidia"] nvidia = ["nvml-wrapper"] +gpu = ["nvidia"] zfs = [] -# Including logging for debugging purposes. +# Logging for debugging performance. logging = ["fern", "log", "time/local-offset"] -# The features we use on deploy. Logging is not included as that is primarily (for now) just for debugging locally. -deploy = ["battery", "gpu", "zfs"] - -default = ["deploy"] +default = ["battery", "gpu", "zfs"] [dependencies] anyhow = "1.0.75" backtrace = "0.3.69" cfg-if = "1.0.0" -clap = { version = "4.4.11", features = ["default", "cargo", "wrap_help"] } +clap = { version = "4.4.14", features = ["default", "cargo", "wrap_help"] } concat-string = "1.0.1" crossterm = "0.27.0" ctrlc = { version = "3.4.1", features = ["termination"] } @@ -93,7 +90,9 @@ indexmap = "2.1.0" itertools = "0.12.0" kstring = { version = "2.0.0", features = ["arc"] } log = { version = "0.4.20", optional = true } -nvml-wrapper = { version = "0.9.0", optional = true, features = ["legacy-functions"] } +nvml-wrapper = { version = "0.9.0", optional = true, features = [ + "legacy-functions", +] } regex = "1.10.2" serde = { version = "=1.0.193", features = ["derive"] } starship-battery = { version = "0.8.2", optional = true } @@ -133,15 +132,17 @@ filedescriptor = "0.8.2" [dev-dependencies] assert_cmd = "2.0.12" -cargo-husky = { version = "1.5.0", default-features = false, features = ["user-hooks"] } +cargo-husky = { version = "1.5.0", default-features = false, features = [ + "user-hooks", +] } predicates = "3.0.3" [build-dependencies] -clap = { version = "4.4.11", features = ["default", "cargo", "wrap_help"] } -clap_complete = "4.4.5" +clap = { version = "4.4.14", features = ["default", "cargo", "wrap_help"] } +clap_complete = "4.4.6" clap_complete_fig = "4.4.2" clap_complete_nushell = "4.4.2" -clap_mangen = "0.2.15" +clap_mangen = "0.2.16" [package.metadata.deb] section = "utility" |