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]]
|
[[bin]]
|
||||||
name = "system76_ectool"
|
name = "system76_ectool"
|
||||||
required-features = ["std", "hidapi"]
|
required-features = ["std", "hidapi", "clap"]
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
clap = "2"
|
clap = { version = "2", optional = true }
|
||||||
libc = { version = "0.2", optional = true }
|
libc = { version = "0.2", optional = true }
|
||||||
hidapi = { version = "1.2", default-features = false, features = ["linux-static-hidraw"], optional = true }
|
hidapi = { version = "1.2", default-features = false, features = ["linux-static-hidraw"], optional = true }
|
||||||
redox_hwio = { version = "0.1.3", optional = true }
|
redox_hwio = { version = "0.1.3", optional = true }
|
||||||
downcast-rs = { version = "1.2.0", default-features = false }
|
downcast-rs = { version = "1.2.0", default-features = false }
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
default = ["std", "hidapi"]
|
default = ["std", "hidapi", "clap"]
|
||||||
std = ["libc", "downcast-rs/std"]
|
std = ["libc", "downcast-rs/std"]
|
||||||
|
|
||||||
[package.metadata.docs.rs]
|
[package.metadata.docs.rs]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user