Skip to content

Commit

Permalink
Make bytesize dependency optional
Browse files Browse the repository at this point in the history
It's only used with `upload` feature
  • Loading branch information
messense committed Jul 27, 2022
1 parent 8d69a6b commit 36f7bed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ name = "maturin"
[dependencies]
anyhow = "1.0.51"
base64 = "0.13.0"
bytesize = "1.0.1"
glob = "0.3.0"
cargo_metadata = "0.15.0"
cargo-options = "0.3.1"
Expand Down Expand Up @@ -62,6 +61,7 @@ clap = { version = "3.1.14", features = ["derive", "env", "wrap_help"] }
clap_complete = "3.1.3"
clap_complete_fig = "3.1.0"
# upload
bytesize = { version = "1.0.1", optional = true }
configparser = { version = "3.0.0", optional = true }
multipart = { version = "0.18.0", features = ["client"], default-features = false, optional = true }
rpassword = { version = "7.0.0", optional = true }
Expand All @@ -75,7 +75,7 @@ indoc = "1.0.3"

[features]
default = ["log", "upload", "rustls", "human-panic"]
upload = ["ureq", "multipart", "rpassword", "configparser"]
upload = ["ureq", "multipart", "rpassword", "configparser", "bytesize"]
password-storage = ["upload", "keyring"]
log = ["pretty_env_logger"]
rustls = ["ureq/tls", "cargo-xwin/rustls-tls"]
Expand Down

0 comments on commit 36f7bed

Please sign in to comment.