Bug 1444097 - Clean up env_logger dependencies. r?ted
For the "js" crate, disable the "regex" feature to reduce binary size.
For the "u2fhid" crate, it's used only in examples. Make it a dev-dependency
so it won't be part of the Firefox build.
MozReview-Commit-ID: DY9indMqrRw
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1891,17 +1891,16 @@ source = "registry+https://github.com/ru
[[package]]
name = "u2fhid"
version = "0.1.0"
dependencies = [
"bitflags 1.0.1 (registry+https://github.com/rust-lang/crates.io-index)",
"boxfnonce 0.0.3 (registry+https://github.com/rust-lang/crates.io-index)",
"core-foundation-sys 0.5.1 (registry+https://github.com/rust-lang/crates.io-index)",
- "env_logger 0.4.3 (registry+https://github.com/rust-lang/crates.io-index)",
"libc 0.2.33 (registry+https://github.com/rust-lang/crates.io-index)",
"libudev 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)",
"log 0.3.8 (registry+https://github.com/rust-lang/crates.io-index)",
"rand 0.3.18 (registry+https://github.com/rust-lang/crates.io-index)",
"runloop 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)",
"winapi 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)",
]
--- a/dom/webauthn/u2f-hid-rs/Cargo.toml
+++ b/dom/webauthn/u2f-hid-rs/Cargo.toml
@@ -10,17 +10,17 @@ libudev = "^0.2"
core-foundation-sys = "0.5.1"
[target.'cfg(target_os = "windows")'.dependencies]
winapi = "0.2.8"
[dependencies]
rand = "0.3"
log = "0.3"
-env_logger = "0.4.1"
libc = "^0.2"
boxfnonce = "0.0.3"
runloop = "0.1.0"
bitflags = "1.0"
[dev-dependencies]
rust-crypto = "^0.2"
base64 = "^0.4"
+env_logger = "0.4.1"
--- a/js/rust/Cargo.toml
+++ b/js/rust/Cargo.toml
@@ -1,19 +1,19 @@
[package]
name = "js"
version = "0.1.4"
authors = ["The Servo Project Developers"]
build = "build.rs"
license = "MPL-2.0"
[build-dependencies]
-env_logger = "0.4"
+env_logger = {version = "0.4", default-features = false} # disable `regex` to reduce code size
log = "0.3"
-bindgen = "0.33.1"
+bindgen = {version = "0.33.1", default-features = false} # disable `logging` to reduce code size
cmake = "0.1"
glob = "0.2.11"
[[test]]
name = "callback"
[[test]]
name = "enumerate"
[[test]]