Upgrade to env_logger 0.5 & log 0.4; reduce related dependencies (#226)

Upgrade to env_logger 0.5 and log 0.4 so that projects that use those
versions don't have to build both those versions and the older ones
that h2 is currently using.

Don't enable the regex support in env_logger. Applications that want
the regex support can enable it themselves; this will happen
automatically when they add their env_logger dependency.

Disable the env_logger dependency in quickcheck.

The result of this is that there are fewer dependencies. For example,
regex and its dependencies are no longer required at all, as can be
seen by observing the changes to the Cargo.lock. That said,
env_logger 0.5 does add more dependencies itself; however it seems
applications are going to use env_logger 0.5 anyway so this is still
a net gain.

Submitted on behalf of Buoyant, Inc.

Signed-off-by: Brian Smith <brian@briansmith.org>
This commit is contained in:
Brian Smith
2018-02-23 18:25:42 -10:00
committed by Carl Lerche
parent 0c59957d88
commit b6724f7d7a
14 changed files with 81 additions and 81 deletions

View File

@@ -15,7 +15,7 @@ use tokio_core::net::TcpListener;
use tokio_core::reactor;
pub fn main() {
let _ = env_logger::init();
let _ = env_logger::try_init();
let mut core = reactor::Core::new().unwrap();
let handle = core.handle();