Merge pull request #1586 from alexcrichton/no-web-sys

Make `env_logger` an optional dependency
This commit is contained in:
Alex Crichton 2019-06-10 10:47:14 -05:00 committed by GitHub
commit c3e0edd956
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -20,7 +20,7 @@ doctest = false
test = false
[build-dependencies]
env_logger = "0.6.0"
env_logger = { version = "0.6.0", optional = true }
failure = "0.1.2"
wasm-bindgen-webidl = { path = "../webidl", version = "=0.2.45" }
sourcefile = "0.1"

View File

@ -8,6 +8,7 @@ use std::path::{self, PathBuf};
use std::process::{self, Command};
fn main() {
#[cfg(feature = "env_logger")]
env_logger::init();
if let Err(e) = try_main() {