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

@@ -32,7 +32,7 @@ sled-overlay = "0.1.10"
blake3 = "1.8.2"
# Misc
log = "0.4.27"
tracing = "0.1.41"
url = "2.5.4"
# Daemon
@@ -45,7 +45,8 @@ semver = {version = "1.0.26", optional = true}
easy-parallel = {version = "3.3.1", optional = true}
signal-hook-async-std = {version = "0.3.0", optional = true}
signal-hook = {version = "0.3.18", optional = true}
simplelog = {version = "0.12.2", optional = true}
tracing-subscriber = { version = "0.3.19", default-features = false, features = ["fmt"], optional = true }
tracing-appender = { version = "0.2.3", optional = true }
serde = {version = "1.0.219", features = ["derive"], optional = true}
structopt = {version = "0.3.26", optional = true}
structopt-toml = {version = "0.5.1", optional = true}
@@ -59,10 +60,11 @@ build-daemon = [
"easy-parallel",
"signal-hook-async-std",
"signal-hook",
"simplelog",
"serde",
"structopt",
"structopt-toml",
"tracing-subscriber",
"tracing-appender"
]
#[lints]

View File

@@ -15,7 +15,7 @@ darkfi = {path = "../../../", features = ["async-daemonize", "validator", "rpc"]
darkfi-serial = "0.5.0"
# Misc
log = "0.4.27"
tracing = "0.1.41"
# JSON-RPC
async-trait = "0.1.88"
@@ -26,7 +26,8 @@ url = "2.5.4"
easy-parallel = "3.3.1"
signal-hook-async-std = "0.3.0"
signal-hook = "0.3.18"
simplelog = "0.12.2"
tracing-subscriber = { version = "0.3.19", default-features = false, features = ["fmt"] }
tracing-appender = "0.2.3"
smol = "2.0.2"
# Argument parsing

View File

@@ -16,7 +16,7 @@ darkfi-serial = "0.5.0"
# Misc
clap = {version = "4.4.11", features = ["derive"]}
log = "0.4.27"
simplelog = "0.12.2"
tracing = "0.1.41"
tracing-subscriber = { version = "0.3.19", default-features = false, features = ["fmt"] }
smol = "2.0.2"
url = "2.5.4"

View File

@@ -15,7 +15,7 @@ darkfi = {path = "../../../../", features = ["async-daemonize", "rpc"]}
darkfi-serial = "0.5.0"
# Misc
log = "0.4.27"
tracing = "0.1.41"
# JSON-RPC
async-trait = "0.1.88"
@@ -27,7 +27,8 @@ async-std = {version = "1.13.1", features = ["attributes"]}
easy-parallel = "3.3.1"
signal-hook-async-std = "0.3.0"
signal-hook = "0.3.18"
simplelog = "0.12.2"
tracing-subscriber = { version = "0.3.19", default-features = false, features = ["fmt"] }
tracing-appender = "0.2.3"
smol = "2.0.2"
# Argument parsing

View File

@@ -16,10 +16,11 @@ rand = "0.8.5"
# Daemon
easy-parallel = "3.3.1"
log = "0.4.27"
tracing = "0.1.41"
tracing-subscriber = { version = "0.3.19", default-features = false, features = ["fmt"] }
tracing-appender = "0.2.3"
signal-hook-async-std = "0.3.0"
signal-hook = "0.3.18"
simplelog = "0.12.2"
smol = "2.0.2"
# Argument parsing

View File

@@ -17,8 +17,8 @@ darkfi-serial = "0.5.0"
# Misc
bs58 = "0.5.1"
log = "0.4.27"
sled-overlay = "0.1.10"
tracing = "0.1.41"
# JSON-RPC
async-trait = "0.1.88"
@@ -30,7 +30,8 @@ async-std = {version = "1.13.1", features = ["attributes"]}
easy-parallel = "3.3.1"
signal-hook-async-std = "0.3.0"
signal-hook = "0.3.18"
simplelog = "0.12.2"
tracing-subscriber = { version = "0.3.19", default-features = false, features = ["fmt"] }
tracing-appender = "0.2.3"
smol = "2.0.2"
# Argument parsing