From f6ab641e08ae95f5541626d99b6115f9cc6f8db4 Mon Sep 17 00:00:00 2001 From: Jonas Kruckenberg Date: Fri, 13 Jan 2023 11:45:05 +0100 Subject: [PATCH] fix: add back log feature --- Cargo.lock | 34 +++++++++++++++++++++++++++++++++- plugins/log/Cargo.toml | 5 ++++- 2 files changed, 37 insertions(+), 2 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 5ca0e094..631e3994 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -227,6 +227,17 @@ dependencies = [ "num-traits", ] +[[package]] +name = "atty" +version = "0.2.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d9b39be18770d11421cdb1b9947a45dd3f37e93092cbf377614828a319d5fee8" +dependencies = [ + "hermit-abi 0.1.19", + "libc", + "winapi 0.3.9", +] + [[package]] name = "authenticator" version = "0.3.1" @@ -597,6 +608,17 @@ version = "1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3d7b894f5411737b7867f4827955924d7c254fc9f4d91a6aad6b097804b1018b" +[[package]] +name = "colored" +version = "1.9.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f4ffc801dacf156c5854b9df4f425a626539c3a6ef7893cc0c5084a23f0b6c59" +dependencies = [ + "atty", + "lazy_static", + "winapi 0.3.9", +] + [[package]] name = "combine" version = "4.6.6" @@ -1117,6 +1139,7 @@ version = "0.6.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3bdd7b0849075e79ee9a1836df22c717d1eba30451796fdc631b04565dd11e2a" dependencies = [ + "colored", "log", ] @@ -1707,6 +1730,15 @@ dependencies = [ "unicode-segmentation", ] +[[package]] +name = "hermit-abi" +version = "0.1.19" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "62b467343b94ba476dcb2500d242dadbb39557df889310ac77c5d99100aaac33" +dependencies = [ + "libc", +] + [[package]] name = "hermit-abi" version = "0.2.6" @@ -2634,7 +2666,7 @@ version = "1.15.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0fac9e2da13b5eb447a6ce3d392f23a29d8694bff781bf03a16cd9ac8697593b" dependencies = [ - "hermit-abi", + "hermit-abi 0.2.6", "libc", ] diff --git a/plugins/log/Cargo.toml b/plugins/log/Cargo.toml index e590222b..41a1457a 100644 --- a/plugins/log/Cargo.toml +++ b/plugins/log/Cargo.toml @@ -17,4 +17,7 @@ serde_repr = "0.1" byte-unit = "4.0" fern = "0.6" log = { workspace = true, features = ["kv_unstable"] } -time = { version = "0.3", features = ["formatting"] } \ No newline at end of file +time = { version = "0.3", features = ["formatting"] } + +[features] +colored = ["fern/colored"] \ No newline at end of file