Nathan Fisher
fb389fd309
- one match statement to return a `Box<dyn Cmd>` - one array containing all command names Only two places to register new commands (besides their module), both in crate::cmd::mod.rs. Also removes `once_cell` crate dependency. Replace `base64` crate dependency with `data_encoding::BASE64` so that both base32 and base64 commands use the same crate.
25 lines
476 B
TOML
25 lines
476 B
TOML
[package]
|
|
name = "shitbox"
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
|
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
|
|
|
[dependencies]
|
|
atty = "0.2.14"
|
|
clap = "4.0.29"
|
|
clap_complete = "4.0.6"
|
|
clap_complete_nushell = "0.1.8"
|
|
clap_mangen = "0.2.5"
|
|
data-encoding = "2.3.3"
|
|
hostname = { version = "0.3", features = ["set"] }
|
|
libc = "0.2.139"
|
|
termcolor = "1.1.3"
|
|
|
|
[profile.release]
|
|
codegen-units = 1
|
|
strip = true
|
|
lto = true
|
|
panic = "abort"
|
|
|