tracing/examples/Cargo.toml
Josh McKinney d40552ca69 examples: add env-filter-explorer example (#3233)
This example demonstrates how to use the `tracing-subscriber` crate's
`EnvFilter` type to filter log messages based on their metadata. The
example provides a text area where users can input an environment filter
string, and displays the log messages that would be captured by that
filter.
2025-06-03 09:47:35 +02:00

68 lines
1.8 KiB
TOML

[package]
name = "tracing-examples"
version = "0.0.0"
publish = false
edition = "2018"
rust-version = "1.64.0"
[features]
default = []
[dev-dependencies]
# tracing crates
tracing = { path = "../tracing", version = "0.1.35" }
tracing-core = { path = "../tracing-core", version = "0.1.28" }
tracing-error = { path = "../tracing-error" }
tracing-flame = { path = "../tracing-flame" }
tracing-tower = { version = "0.1.0", path = "../tracing-tower" }
tracing-subscriber = { path = "../tracing-subscriber", version = "0.3.0", features = ["json", "env-filter"] }
tracing-futures = { version = "0.2.1", path = "../tracing-futures", features = ["futures-01"] }
tracing-attributes = { path = "../tracing-attributes", version = "0.1.22" }
tracing-serde = { path = "../tracing-serde" }
tracing-appender = { path = "../tracing-appender", version = "0.2.0" }
tracing-journald = { path = "../tracing-journald" }
# serde example
serde_json = "1.0.82"
futures = "0.3.21"
tokio = { version = "1.20.1", features = ["full"] }
# tower examples
tower = { version = "0.4.13", features = ["full"] }
http = "0.2.8"
hyper = { version = "0.14.20", features = ["full"] }
rand = "0.7.3"
bytes = "1"
argh = "0.1.8"
# sloggish example
nu-ansi-term = "0.46.0"
humantime = "2.1.0"
log = "0.4.17"
# inferno example
inferno = "0.11.6"
tempfile = "3"
# fmt examples
snafu = "0.6.10"
thiserror = "1.0.31"
# env-filter-explorer example
ansi-to-tui = "7.0.0"
ratatui = "0.29.0"
crossterm = "0.28.1"
tui-textarea = "0.7.0"
# valuable examples
valuable = { version = "0.1.0", features = ["derive"] }
[target.'cfg(tracing_unstable)'.dependencies]
tracing-core = { path = "../tracing-core", version = "0.1.28", features = ["valuable"]}
tracing-subscriber = { path = "../tracing-subscriber", version = "0.3.0", features = ["json", "env-filter", "valuable"]}
[lints]
workspace = true