From 09c93c70ccf87d704c0877d636e0208e27ee830e Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Tue, 30 Aug 2022 12:29:17 -0500 Subject: [PATCH] Remove the `ansi_term` transitive dependency (#4822) Only used during tests but this resolves #4742 by slimming the dependency tree. --- Cargo.lock | 24 ------------------------ Cargo.toml | 1 - crates/wiggle/test-helpers/Cargo.toml | 2 +- supply-chain/config.toml | 8 -------- 4 files changed, 1 insertion(+), 34 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 936c14ade4..82cd188973 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -78,15 +78,6 @@ version = "0.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ec8ad6edb4840b78c5c3d88de606b22252d552b55f3a4699fbb10fc070ec3049" -[[package]] -name = "ansi_term" -version = "0.12.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d52a9bb7ec0cf484c551830a7ce27bd20d67eac647e1befb56b0be4ee39a55d2" -dependencies = [ - "winapi", -] - [[package]] name = "anyhow" version = "1.0.57" @@ -2985,29 +2976,15 @@ dependencies = [ "valuable", ] -[[package]] -name = "tracing-log" -version = "0.1.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "78ddad33d2d10b1ed7eb9d1f518a5674713876e97e5bb9b7345a7984fbb4f922" -dependencies = [ - "lazy_static", - "log", - "tracing-core", -] - [[package]] name = "tracing-subscriber" version = "0.3.11" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4bc28f93baff38037f64e6f43d34cfa1605f27a49c34e8a04c5e78b0babf2596" dependencies = [ - "ansi_term", "sharded-slab", - "smallvec", "thread_local", "tracing-core", - "tracing-log", ] [[package]] @@ -3475,7 +3452,6 @@ dependencies = [ "tempfile", "test-programs", "tokio", - "tracing-subscriber", "wasmtime", "wasmtime-cache", "wasmtime-cli-flags", diff --git a/Cargo.toml b/Cargo.toml index f39aff64d3..70410df76f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -50,7 +50,6 @@ tempfile = "3.1.0" test-programs = { path = "crates/test-programs" } wasmtime-runtime = { path = "crates/runtime" } tokio = { version = "1.8.0", features = ["rt", "time", "macros", "rt-multi-thread"] } -tracing-subscriber = "0.3.1" wast = "46.0.0" criterion = "0.3.4" num_cpus = "1.13.0" diff --git a/crates/wiggle/test-helpers/Cargo.toml b/crates/wiggle/test-helpers/Cargo.toml index eab92bf69c..1250f3e196 100644 --- a/crates/wiggle/test-helpers/Cargo.toml +++ b/crates/wiggle/test-helpers/Cargo.toml @@ -18,7 +18,7 @@ wiggle = { path = "..", features = ["tracing_log"] } [dev-dependencies] thiserror = "1.0" tracing = "0.1.26" -tracing-subscriber = "0.3.1" +tracing-subscriber = { version = "0.3.1", default-features = false, features = ['fmt'] } env_logger = "0.9" [badges] diff --git a/supply-chain/config.toml b/supply-chain/config.toml index d8c5dbbbc2..821e31a9f1 100644 --- a/supply-chain/config.toml +++ b/supply-chain/config.toml @@ -42,10 +42,6 @@ criteria = "safe-to-deploy" version = "0.0.1" criteria = "safe-to-deploy" -[[exemptions.ansi_term]] -version = "0.12.1" -criteria = "safe-to-run" - [[exemptions.anyhow]] version = "1.0.57" criteria = "safe-to-deploy" @@ -1046,10 +1042,6 @@ criteria = "safe-to-deploy" version = "0.1.28" criteria = "safe-to-deploy" -[[exemptions.tracing-log]] -version = "0.1.3" -criteria = "safe-to-run" - [[exemptions.tracing-subscriber]] version = "0.3.11" criteria = "safe-to-run"