From 0620997bdfa7aee70da0fba74a06c0a16a151891 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emilio=20Cobos=20=C3=81lvarez?= Date: Tue, 25 Jun 2019 13:59:34 +0200 Subject: [PATCH] Make clap optional. --- Cargo.toml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 82e0fb09..5d558fe1 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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 = []