tool: Don't depend on clap
when without default features
This commit is contained in:
parent
aefad937bb
commit
59df32814b
@ -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]
|
||||
|
Loading…
x
Reference in New Issue
Block a user