Skip to content

Commit

Permalink
Merge pull request #1581 from emilio/clap-optional
Browse files Browse the repository at this point in the history
Make clap optional.
  • Loading branch information
emilio committed Jun 25, 2019
2 parents 8779c91 + 0620997 commit 55a06f3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Cargo.toml
Expand Up @@ -36,6 +36,7 @@ path = "src/lib.rs"
name = "bindgen"
path = "src/main.rs"
doc = false
required-features = ["clap"]

[dev-dependencies]
diff = "0.1"
Expand All @@ -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"
Expand All @@ -69,7 +70,7 @@ optional = true
version = "0.4"

[features]
default = ["logging"]
default = ["logging", "clap"]
logging = ["env_logger", "log"]
static = []

Expand Down

0 comments on commit 55a06f3

Please sign in to comment.