diff --git a/maa-cli/Cargo.toml b/maa-cli/Cargo.toml index 14df3893..55e0a558 100644 --- a/maa-cli/Cargo.toml +++ b/maa-cli/Cargo.toml @@ -44,67 +44,45 @@ maa-sys = { path = "../maa-sys", version = "0.3.1", features = [ ] } maa-dirs = { path = "../maa-dirs", version = "0.1.0" } -directories = "5" anyhow = "1" -signal-hook = "0.3.17" -dunce = "1.0.4" async-trait = "0.1.81" -prettytable = { version = "0.10.0", default-features = false } - clap = { version = "4.4", features = ["derive"] } clap_complete = { version = "4.4" } clap_mangen = "0.2.20" - -toml = "0.8" +color-print = "0.3.6" +digest = { version = "0.10.7", optional = true } +directories = "5" +dunce = "1.0.4" +flate2 = { version = "1", optional = true } +futures-util = { version = "0.3.28", optional = true } +git2 = { version = "0.19", optional = true } +indicatif = { version = "0.17.7", optional = true } +log = "0.4.20" +prettytable = { version = "0.10.0", default-features = false } +semver = { version = "1.0.19", features = ["serde"], optional = true } serde = { version = "1", features = ["derive"] } serde_json = "1" serde_yaml = "0.9.25" - -# Backend used to manipulate resource repository -git2 = { version = "0.19", optional = true } - -# Dependencies used to download files -indicatif = { version = "0.17.7", optional = true } -futures-util = { version = "0.3.28", optional = true } sha2 = { version = "0.10.7", optional = true } -digest = { version = "0.10.7", optional = true } -semver = { version = "1.0.19", features = ["serde"], optional = true } - -# Dependencies used to extract files -flate2 = { version = "1", optional = true } +signal-hook = "0.3.17" tar = { version = "0.4.40", optional = true } +toml = "0.8" -# Logging support -log = "0.4.20" -color-print = "0.3.6" - -[dependencies.env_logger] -version = "0.11" -default-features = false -features = ["auto-color"] - -# Datetime support [dependencies.chrono] version = "0.4.31" default-features = false features = ["std", "clock", "serde"] -[dependencies.zip] -version = "2" -optional = true -default-features = false -features = ["deflate"] - -[dependencies.tokio] -version = "1.31" +[dependencies.env_logger] +version = "0.11" default-features = false -features = ["rt", "rt-multi-thread"] +features = ["auto-color"] [dependencies.reqwest] version = "0.12" default-features = false features = [ - # default features without default-tls {{{ + # Default features without default-tls {{{ "charset", "http2", "macos-system-configuration", @@ -114,6 +92,17 @@ features = [ "json", ] +[dependencies.tokio] +version = "1.31" +default-features = false +features = ["rt", "rt-multi-thread"] + +[dependencies.zip] +version = "2" +optional = true +default-features = false +features = ["deflate"] + [target.'cfg(windows)'.dependencies.windows] version = "0.52.0" features = ["Win32_Foundation", "Win32_System_LibraryLoader"]