feat: make tracing a crate feature and make it a default feature of the current crates

This commit is contained in:
J / Jacob Babich
2024-09-30 14:56:57 -04:00
parent 15c8a69cf3
commit 75952c947a
2 changed files with 8 additions and 3 deletions

View File

@@ -9,6 +9,10 @@ authors = { workspace = true }
license = { workspace = true } license = { workspace = true }
repository = { workspace = true } repository = { workspace = true }
[features]
default = ["tracing"]
tracing = ["dep:tracing"]
[dependencies] [dependencies]
clap = { workspace = true, features = ["derive", "env"] } clap = { workspace = true, features = ["derive", "env"] }
tracing = { workspace = true } tracing = { workspace = true, optional = true }

View File

@@ -10,11 +10,12 @@ license = { workspace = true }
repository = { workspace = true } repository = { workspace = true }
[features] [features]
default = ["cli-clap"] default = ["cli-clap", "tracing"]
cli-clap = ["dep:ac-qu-ai-nt-cli-clap"] cli-clap = ["dep:ac-qu-ai-nt-cli-clap"]
tracing = ["dep:tracing-subscriber", "ac-qu-ai-nt-cli-clap?/tracing"]
[dependencies] [dependencies]
ac-qu-ai-nt-cli-clap = { version = "0.0.3", path = "../cli-clap", optional = true } ac-qu-ai-nt-cli-clap = { version = "0.0.3", path = "../cli-clap", optional = true }
clap = { workspace = true, features = ["derive", "env"] } clap = { workspace = true, features = ["derive", "env"] }
dirs-next = "2.0.0" dirs-next = "2.0.0"
tracing-subscriber = "0.3.18" tracing-subscriber = { version = "0.3.18", optional = true }