Bug 1485414 - Make lazy_static a dev dependency. r=whimboo
authorAndreas Tolfsen <ato@sny.no>
Wed, 22 Aug 2018 18:06:39 +0100
changeset 831056 63e890c419e86a2693efb19d3691fa78d0629a0e
parent 831055 ecb1726e2a622b8181c0d3ef30240a581ceedaf0
child 831057 50af5b3ee1e21f2f3ee4f9d9a4b3d97a5d025543
push id118868
push userbmo:zjz@zjz.name
push dateFri, 24 Aug 2018 07:04:39 +0000
reviewerswhimboo
bugs1485414
milestone63.0a1
Bug 1485414 - Make lazy_static a dev dependency. r=whimboo This silences an unused macro_use warning at build time.
testing/webdriver/Cargo.toml
testing/webdriver/src/lib.rs
--- a/testing/webdriver/Cargo.toml
+++ b/testing/webdriver/Cargo.toml
@@ -8,17 +8,19 @@ documentation = "https://docs.rs/webdriv
 repository = "https://hg.mozilla.org/mozilla-central/file/tip/testing/webdriver"
 readme = "README.md"
 license = "MPL-2.0"
 
 [dependencies]
 cookie = { version = "0.10", default-features = false }
 base64 = "0.6"
 hyper = "0.10"
-lazy_static = "1.0"
 log = "0.4"
 regex = "1.0"
 serde = "1.0"
 serde_json = "1.0"
 serde_derive = "1.0"
 time = "0.1"
 unicode-segmentation = "1.2"
 url = "1"
+
+[dev-dependencies]
+lazy_static = "1.0"
--- a/testing/webdriver/src/lib.rs
+++ b/testing/webdriver/src/lib.rs
@@ -1,15 +1,13 @@
 #![allow(non_snake_case)]
 
 extern crate base64;
 extern crate cookie;
 #[macro_use]
-extern crate lazy_static;
-#[macro_use]
 extern crate log;
 extern crate hyper;
 extern crate regex;
 extern crate serde;
 #[macro_use]
 extern crate serde_derive;
 extern crate serde_json;
 extern crate time;
@@ -23,9 +21,12 @@ pub mod capabilities;
 pub mod command;
 pub mod common;
 pub mod error;
 pub mod httpapi;
 pub mod response;
 pub mod server;
 
 #[cfg(test)]
+#[macro_use]
+extern crate lazy_static;
+#[cfg(test)]
 pub mod test;