tool: Don't depend on clap when without default features

This commit is contained in:
Ian Douglas Scott 2021-03-04 10:52:52 -08:00 committed by Jeremy Soller
parent aefad937bb
commit 59df32814b

View File

@ -13,17 +13,17 @@ name = "ectool"
[[bin]]
name = "system76_ectool"
required-features = ["std", "hidapi"]
required-features = ["std", "hidapi", "clap"]
[dependencies]
clap = "2"
clap = { version = "2", optional = true }
libc = { version = "0.2", optional = true }
hidapi = { version = "1.2", default-features = false, features = ["linux-static-hidraw"], optional = true }
redox_hwio = { version = "0.1.3", optional = true }
downcast-rs = { version = "1.2.0", default-features = false }
[features]
default = ["std", "hidapi"]
default = ["std", "hidapi", "clap"]
std = ["libc", "downcast-rs/std"]
[package.metadata.docs.rs]