浏览代码

Update dependencies: ignore those updated through caret spec

* allow logging environment overwrite by RUST_LOG
Alexandra Sandulescu 3 年之前
父节点
当前提交
9b5abf0e88
共有 2 个文件被更改,包括 6 次插入5 次删除
  1. 4 4
      Cargo.toml
  2. 2 1
      examples/utils.rs

+ 4 - 4
Cargo.toml

@@ -17,10 +17,10 @@ autoexamples = false
 
 [dependencies]
 managed = { version = "0.8", default-features = false, features = ["map"] }
-byteorder = { version = "1.4", default-features = false }
-log = { version = "0.4.14", default-features = false, optional = true }
-libc = { version = "0.2.115", optional = true }
-bitflags = { version = "1.3", default-features = false }
+byteorder = { version = "1.0", default-features = false }
+log = { version = "0.4.4", default-features = false, optional = true }
+libc = { version = "0.2.18", optional = true }
+bitflags = { version = "1.0", default-features = false }
 defmt = { version = "0.3", optional = true }
 rand_core = { version = "0.6.3", optional = true, default-features = false }
 

+ 2 - 1
examples/utils.rs

@@ -23,7 +23,7 @@ pub fn setup_logging_with_clock<F>(filter: &str, since_startup: F)
 where
     F: Fn() -> Instant + Send + Sync + 'static,
 {
-    Builder::from_default_env()
+    Builder::new()
         .format(move |buf, record| {
             let elapsed = since_startup();
             let timestamp = format!("[{}]", elapsed);
@@ -55,6 +55,7 @@ where
         })
         .filter(None, LevelFilter::Trace)
         .parse_filters(filter)
+        .parse_env("RUST_LOG")
         .init();
 }