Skip to content

Commit

Permalink
Implement tracing support with associated type on LogLevel trait
Browse files Browse the repository at this point in the history
  • Loading branch information
joshka committed Nov 14, 2024
1 parent 28a2888 commit 662bf47
Show file tree
Hide file tree
Showing 5 changed files with 443 additions and 322 deletions.
1 change: 1 addition & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 7 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -113,9 +113,15 @@ pre-release-replacements = [
[badges]
codecov = { repository = "clap-rs/clap-verbosity-flag" }

[features]
default = ["log"]
log = ["dep:log"]
tracing = ["dep:tracing-core"]

[dependencies]
log = "0.4.1"
log = { version = "0.4.1", optional = true }
clap = { version = "4.0.0", default-features = false, features = ["std", "derive"] }
tracing-core = {version = "0.1", optional = true }

[dev-dependencies]
clap = { version = "4.5.4", default-features = false, features = ["help", "usage"] }
Expand Down
Loading

0 comments on commit 662bf47

Please sign in to comment.