Crate features / tracing-subscriber
Feature flags · tracing-subscriber 0.3.23 · from crates.io 2026-10-24
tracing-subscriber features: what each one does, and the line to copy
Short answertracing-subscriber 0.3.23 has 11 features. By default it turns on smallvec, fmt, ansi, tracing-log, std; add default-features = false to start from nothing. It needs Rust 1.65.0 or newer.
Pick features
Every feature
| Feature | In default | Turns on |
|---|---|---|
alloc | nothing else (a switch the code checks) | |
ansi | yes | fmt, nu-ansi-term |
env-filter | matchers, once_cell, tracing, std, thread_local, dep:regex-automata | |
fmt | yes | registry, std |
json | tracing-serde, serde, serde_json | |
local-time | time/local-offset | |
nu-ansi-term | dep:nu-ansi-term | |
regex | nothing else (a switch the code checks) | |
registry | sharded-slab, thread_local, std | |
std | yes | alloc, tracing-core/std |
valuable | tracing-core/valuable, valuable_crate, valuable-serde, tracing-serde/valuable |
dep:x turns on the optional dependency x; x/y turns on feature y of dependency x (with ?, only if x is already on).
MSRV history
The minimum Rust version tracing-subscriber declares (rust-version), and the release that changed it:
- 0.3.3 (2021-11-29): Rust 1.42.0
- 0.3.9 (2022-02-18): Rust 1.49.0
- 0.3.16 (2022-10-06): Rust 1.50.0
- 0.3.17 (2023-04-22): Rust 1.56.0
- 0.3.18 (2023-11-13): Rust 1.63.0
- 0.3.20 (2025-08-29): Rust 1.65.0
Stuck on an older compiler? Pin the last version that supports it, for example cargo update -p tracing-subscriber --precise <version>, or use resolver 3, which picks compatible versions for you.
More on tracing-subscriber
Real downloads, dependents and alternatives: tracing-subscriber crate data (1.9M real downloads a day, 20,192 dependents).
Security record: tracing-subscriber advisories.
docs.rs feature list · crates.io · license MIT · edition 2018
Up next
Before you depend on ittracing-subscriber crate dataReal downloads, dependents, alternatives.Read it next →Did this answer your question?