From 4f5145493dfcc62fd4f5cdcbaf1865784dd8e73e Mon Sep 17 00:00:00 2001 From: Jiaqi Gao Date: Thu, 14 Dec 2023 00:10:30 -0500 Subject: [PATCH] upgrade dependency `env_logger` To unuse the crate `atty` which has a potential security issue and is unmaintained. Signed-off-by: Jiaqi Gao --- Cargo.lock | 25 +++++++++++++++++++++---- td-loader/Cargo.toml | 2 +- td-shim-tools/Cargo.toml | 2 +- 3 files changed, 23 insertions(+), 6 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 9a053263..87c60a40 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -111,7 +111,7 @@ version = "0.2.14" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d9b39be18770d11421cdb1b9947a45dd3f37e93092cbf377614828a319d5fee8" dependencies = [ - "hermit-abi", + "hermit-abi 0.1.19", "libc", "winapi", ] @@ -421,12 +421,12 @@ checksum = "a26ae43d7bcc3b814de94796a5e736d4029efb0ee900c12e2d54c993ad1a1e07" [[package]] name = "env_logger" -version = "0.9.3" +version = "0.10.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a12e6657c4c97ebab115a42dcee77225f7f482cdd841cf7088c657a42e9e00e7" +checksum = "95b3f3e67048839cb0d0781f445682a35113da7121f7c949db0e2be96a4fbece" dependencies = [ - "atty", "humantime", + "is-terminal", "log", "regex", "termcolor", @@ -525,6 +525,12 @@ dependencies = [ "libc", ] +[[package]] +name = "hermit-abi" +version = "0.3.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d77f7ec81a6d05a3abb01ab6eb7590f6083d08449fe5a1c8b1e620283546ccb7" + [[package]] name = "hex" version = "0.4.3" @@ -608,6 +614,17 @@ dependencies = [ "hashbrown", ] +[[package]] +name = "is-terminal" +version = "0.4.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cb0889898416213fab133e1d33a0e5858a48177452750691bde3666d0fdbaf8b" +dependencies = [ + "hermit-abi 0.3.3", + "rustix", + "windows-sys", +] + [[package]] name = "itoa" version = "1.0.9" diff --git a/td-loader/Cargo.toml b/td-loader/Cargo.toml index 414bfc1a..7e95c69b 100644 --- a/td-loader/Cargo.toml +++ b/td-loader/Cargo.toml @@ -14,4 +14,4 @@ log = "0.4.13" scroll = { version = "0.10", default-features=false, features = ["derive"] } [dev-dependencies] -env_logger = "0.9.0" \ No newline at end of file +env_logger = "0.10" \ No newline at end of file diff --git a/td-shim-tools/Cargo.toml b/td-shim-tools/Cargo.toml index a03b3176..a4e7f572 100644 --- a/td-shim-tools/Cargo.toml +++ b/td-shim-tools/Cargo.toml @@ -49,7 +49,7 @@ anyhow = { version = "1.0.68", optional = true } block-padding = { version = "0.3.2", optional = true } clap = { version = "4.0", features = ["cargo"], optional = true } der = { version = "0.4.5", features = ["oid"], optional = true } -env_logger = { version = "0.9.0", optional = true } +env_logger = { version = "0.10", optional = true } log = { version = "0.4.5", optional = true } td-loader = { path = "../td-loader", optional = true } ring = { version = "0.17.6", optional = true }