Bug 1444097 - Clean up env_logger dependencies. r?ted draft
authorMatt Brubeck <mbrubeck@mozilla.com>
Thu, 08 Mar 2018 07:35:11 -0800
changeset 764913 b58f4583b6f1efef65316e5902050bebef1981ca
parent 764272 493e45400842b6ccfffb63b58b40b33a0b8154ab
push id101889
push userbmo:mbrubeck@mozilla.com
push dateThu, 08 Mar 2018 15:41:44 +0000
reviewersted
bugs1444097
milestone60.0a1
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
Cargo.lock
dom/webauthn/u2f-hid-rs/Cargo.toml
js/rust/Cargo.toml
--- 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]]