Bug 1444097 - Clean up env_logger dependencies. r=ted
authorMatt Brubeck <mbrubeck@mozilla.com>
Thu, 08 Mar 2018 07:35:11 -0800
changeset 407229 8d62a6ff5d9aa2ebfce7bf90a044bc6caaa7840e
parent 407228 144f1e24df60507c7af072a446baaab39c1270a7
child 407230 da5ed94719185e9e8843e2765350a4650d2d7894
push id60851
push usermbrubeck@mozilla.com
push dateThu, 08 Mar 2018 18:51:58 +0000
treeherderautoland@8d62a6ff5d9a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersted
bugs1444097
milestone60.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
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]]