From 2d1f4daed7a25e0502001efd82c46ec1bb7a0410 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20Thei=C3=9Fen?= Date: Wed, 21 Apr 2021 14:25:27 +0200 Subject: [PATCH] Update dependencies --- .travis.yml | 2 +- Cargo.toml | 24 +++++++++++------------- src/logger.rs | 7 +------ 3 files changed, 13 insertions(+), 20 deletions(-) diff --git a/.travis.yml b/.travis.yml index 691eaf8..a64db76 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,8 +1,8 @@ language: rust +dist: focal rust: - nightly - stable - script: - cargo test --all-features --verbose - cargo build --no-default-features --verbose diff --git a/Cargo.toml b/Cargo.toml index f6a9e60..0fafecc 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "pwasm-utils" -version = "0.17.1" +version = "0.17.2" edition = "2018" authors = ["Nikolay Volf ", "Sergey Pepyakin "] license = "MIT/Apache-2.0" @@ -45,25 +45,23 @@ path = "cli/check/main.rs" required-features = ["cli"] [dependencies] -# If you add the feature "bulk", make sure you fixed all expects that say -# "parity-wasm is compiled without bulk-memory operations" -parity-wasm = { version = "0.42.1", default-features = false } -log = { version = "0.4", default-features = false } byteorder = { version = "1", default-features = false } +log = { version = "0.4", default-features = false } +parity-wasm = { version = "0.42", default-features = false } # Dependencies only used by the binaries -glob = { version = "0.2", optional = true } -clap = { version = "2.24", optional = true } -env_logger = { version = "0.5", optional = true } -lazy_static = { version = "1.0", optional = true } +clap = { version = "2", optional = true } +env_logger = { version = "0.8", optional = true } +glob = { version = "0.3", optional = true } +lazy_static = { version = "1", optional = true } [dev-dependencies] +binaryen = "0.12" +diff = "0.1" +indoc = "1" +rand = "0.8" tempdir = "0.3" wabt = "0.10" -diff = "0.1.11" -indoc = "0.3" -rand = "0.7" -binaryen = "0.8" [features] default = ["std"] diff --git a/src/logger.rs b/src/logger.rs index 8993eba..ce8187e 100644 --- a/src/logger.rs +++ b/src/logger.rs @@ -1,4 +1,3 @@ -use crate::std::env; use log::LevelFilter; use env_logger::Builder; use lazy_static::lazy_static; @@ -7,11 +6,7 @@ lazy_static! { static ref LOG_DUMMY: bool = { let mut builder = Builder::new(); builder.filter(None, LevelFilter::Info); - - if let Ok(log) = env::var("RUST_LOG") { - builder.parse(&log); - } - + builder.parse_default_env(); builder.init(); trace!("logger initialized"); true