Make clap optional.

This commit is contained in:
Emilio Cobos Álvarez 2019-06-25 13:59:34 +02:00
parent 8779c9167f
commit 0620997bdf
No known key found for this signature in database
GPG Key ID: E1152D0994E4BF8A

View File

@ -36,6 +36,7 @@ path = "src/lib.rs"
name = "bindgen"
path = "src/main.rs"
doc = false
required-features = ["clap"]
[dev-dependencies]
diff = "0.1"
@ -47,7 +48,7 @@ bitflags = "1.0.3"
cexpr = "0.3.3"
cfg-if = "0.1.0"
# This kinda sucks: https://github.com/rust-lang/cargo/issues/1982
clap = "2"
clap = { version = "2", optional = true }
clang-sys = { version = "0.28.0", features = ["runtime", "clang_6_0"] }
lazy_static = "1"
peeking_take_while = "0.1.2"
@ -69,7 +70,7 @@ optional = true
version = "0.4"
[features]
default = ["logging"]
default = ["logging", "clap"]
logging = ["env_logger", "log"]
static = []