Cargo.toml, Cargo.lock: change dependencies used for logging

- replace log crate with tracing,
- replace simple-log crate with tracing-subscriber and tracing-appender
- add nu-ansi-term crate as a dependency which is itself tracing-subscriber's dependency,
  inorder to write colored outputs to the terminal since we override formatting provided
  by tracing-subscriber
This commit is contained in:
oars
2025-07-09 16:57:16 +03:00
parent 88c159bd06
commit ac0365cc60
24 changed files with 134 additions and 101 deletions

View File

@@ -53,8 +53,8 @@ members = [
[dependencies]
# Hard dependencies
libc = "0.2.174"
log = "0.4.27"
thiserror = "2.0.12"
tracing = "0.1.41"
# async-runtime
async-recursion = {version = "1.1.1", optional = true}
@@ -105,8 +105,11 @@ num-bigint = {version = "0.4.6", optional = true}
url = {version = "2.5.4", features = ["serde"], optional = true}
# Misc
simplelog = {version = "0.12.2", optional = true}
regex = {version = "1.11.1", optional = true}
tracing-subscriber = { version = "0.3.19", default-features = false, features = ["fmt"], optional = true }
tracing-appender = {version = "0.2.3", optional = true }
nu-ansi-term = {version = "0.46.0", optional = true}
# Crypto
rand = {version = "0.8.5", optional = true}
@@ -266,7 +269,10 @@ tx = [
]
util = [
"simplelog",
"tracing-subscriber",
"tracing-appender",
"nu-ansi-term",
"tinyjson",
"darkfi-serial",