Disable logging in bindgen to reduce code size

This disables bindgen's `logging` feature, which builds `env_logger`
with default features, including regex support.  Disabling it allows
Gecko to build `env_logger` without the `regex` crate, reducing code
size.

Part of https://bugzilla.mozilla.org/show_bug.cgi?id=1444097
This commit is contained in:
Matt Brubeck 2018-03-08 07:43:02 -08:00
parent 8133f788cf
commit 2f2bfb23db
4 changed files with 2 additions and 51 deletions

View file

@ -78,7 +78,7 @@ kernel32-sys = "0.2"
[build-dependencies]
lazy_static = "1"
log = "0.3"
bindgen = { version = "0.33.1", optional = true }
bindgen = { version = "0.33.1", optional = true, default-features = false }
regex = {version = "0.2", optional = true}
walkdir = "1.0"
toml = {version = "0.2.1", optional = true, default-features = false}