mirror of
https://github.com/tokio-rs/tracing.git
synced 2025-09-29 05:52:37 +00:00

# 0.3.16 (October 6, 2022) This release of `tracing-subscriber` fixes a regression introduced in [v0.3.15][subscriber-0.3.15] where `Option::None`'s `Layer` implementation would set the max level hint to `OFF`. In addition, it adds several new APIs, including the `Filter::event_enabled` method for filtering events based on fields values, and the ability to log internal errors that occur when writing a log line. This release also replaces the dependency on the unmaintained [`ansi-term`] crate with the [`nu-ansi-term`] crate, resolving an *informational* security advisory ([RUSTSEC-2021-0139] for [`ansi-term`]'s maintainance status. This increases the minimum supported Rust version (MSRV) to Rust 1.50+, although the crate should still compile for the previous MSRV of Rust 1.49+ when the `ansi` feature is not enabled. ### Fixed - **layer**: `Option::None`'s `Layer` impl always setting the `max_level_hint` to `LevelFilter::OFF` (#2321) - Compilation with `-Z minimal versions` (#2246) - **env-filter**: Clarify that disabled level warnings are emitted by `tracing-subscriber` (#2285) ### Added - **fmt**: Log internal errors to `stderr` if writing a log line fails (#2102) - **fmt**: `FmtLayer::log_internal_errors` and `FmtSubscriber::log_internal_errors` methods for configuring whether internal writer errors are printed to `stderr` (#2102) - **fmt**: `#[must_use]` attributes on builders to warn if a `Subscriber` is configured but not set as the default subscriber (#2239) - **filter**: `Filter::event_enabled` method for filtering an event based on its fields (#2245, #2251) - **filter**: `Targets::default_level` accessor (#2242) ### Changed - **ansi**: Replaced dependency on unmaintained `ansi-term` crate with `nu-ansi-term` ((#2287, fixes informational advisory [RUSTSEC-2021-0139]) - `tracing-core`: updated to [0.1.30][core-0.1.30] - Minimum Supported Rust Version (MSRV) increased to Rust 1.50+ (when the `ansi`) feature flag is enabled (#2287) ### Documented - **fmt**: Correct inaccuracies in `fmt::init` documentation (#2224) - **filter**: Fix incorrect doc link in `filter::Not` combinator (#2249) Thanks to new contributors @cgbur, @DesmondWillowbrook, @RalfJung, and @poliorcetics, as well as returning contributors @CAD97, @connec, @jswrenn, @guswynn, and @bryangarza, for contributing to this release! [nu-ansi-term]: https://github.com/nushell/nu-ansi-term [ansi_term]: https://github.com/ogham/rust-ansi-term [RUSTSEC-2021-0139]: https://rustsec.org/advisories/RUSTSEC-2021-0139.html [core-0.1.30]: https://github.com/tokio-rs/tracing/releases/tag/tracing-core-0.1.30 [subscriber-0.3.15]: https://github.com/tokio-rs/tracing/releases/tag/tracing-subscriber-0.3.15
105 lines
3.4 KiB
TOML
105 lines
3.4 KiB
TOML
[package]
|
|
name = "tracing-subscriber"
|
|
version = "0.3.16"
|
|
authors = [
|
|
"Eliza Weisman <eliza@buoyant.io>",
|
|
"David Barsky <me@davidbarsky.com>",
|
|
"Tokio Contributors <team@tokio.rs>",
|
|
]
|
|
edition = "2018"
|
|
license = "MIT"
|
|
readme = "README.md"
|
|
repository = "https://github.com/tokio-rs/tracing"
|
|
homepage = "https://tokio.rs"
|
|
description = """
|
|
Utilities for implementing and composing `tracing` subscribers.
|
|
"""
|
|
categories = [
|
|
"development-tools::debugging",
|
|
"development-tools::profiling",
|
|
"asynchronous",
|
|
]
|
|
keywords = ["logging", "tracing", "metrics", "subscriber"]
|
|
rust-version = "1.50.0"
|
|
|
|
[features]
|
|
|
|
default = ["smallvec", "fmt", "ansi", "tracing-log", "std"]
|
|
alloc = []
|
|
std = ["alloc", "tracing-core/std"]
|
|
env-filter = ["matchers", "regex", "once_cell", "tracing", "std", "thread_local"]
|
|
fmt = ["registry", "std"]
|
|
ansi = ["fmt", "nu-ansi-term"]
|
|
registry = ["sharded-slab", "thread_local", "std"]
|
|
json = ["tracing-serde", "serde", "serde_json"]
|
|
valuable = ["tracing-core/valuable", "valuable_crate", "valuable-serde", "tracing-serde/valuable"]
|
|
# Enables support for local time when using the `time` crate timestamp
|
|
# formatters.
|
|
local-time = ["time/local-offset"]
|
|
|
|
[dependencies]
|
|
tracing-core = { path = "../tracing-core", version = "0.1.30", default-features = false }
|
|
|
|
# only required by the filter feature
|
|
tracing = { optional = true, path = "../tracing", version = "0.1.35", default-features = false }
|
|
matchers = { optional = true, version = "0.1.0" }
|
|
regex = { optional = true, version = "1", default-features = false, features = ["std"] }
|
|
smallvec = { optional = true, version = "1.9.0" }
|
|
once_cell = { optional = true, version = "1.13.0" }
|
|
|
|
# fmt
|
|
tracing-log = { path = "../tracing-log", version = "0.1.3", optional = true, default-features = false, features = ["log-tracer", "std"] }
|
|
nu-ansi-term = { version = "0.46.0", optional = true }
|
|
time = { version = "0.3.2", features = ["formatting"], optional = true }
|
|
|
|
# only required by the json feature
|
|
serde_json = { version = "1.0.82", optional = true }
|
|
serde = { version = "1.0.140", optional = true }
|
|
tracing-serde = { path = "../tracing-serde", version = "0.1.3", optional = true }
|
|
|
|
# opt-in deps
|
|
parking_lot = { version = "0.12.1", optional = true }
|
|
|
|
# registry
|
|
sharded-slab = { version = "0.1.4", optional = true }
|
|
thread_local = { version = "1.1.4", optional = true }
|
|
|
|
[target.'cfg(tracing_unstable)'.dependencies]
|
|
valuable_crate = { package = "valuable", version = "0.1.0", optional = true, default-features = false }
|
|
valuable-serde = { version = "0.1.0", optional = true, default-features = false }
|
|
|
|
[dev-dependencies]
|
|
tracing = { path = "../tracing", version = "0.1.35" }
|
|
tracing-mock = { path = "../tracing-mock" }
|
|
log = "0.4.17"
|
|
tracing-log = { path = "../tracing-log", version = "0.1.3" }
|
|
criterion = { version = "0.3.6", default-features = false }
|
|
regex = { version = "1", default-features = false, features = ["std"] }
|
|
tracing-futures = { path = "../tracing-futures", version = "0.2.0", default-features = false, features = ["std-future", "std"] }
|
|
tokio = { version = "1", features = ["rt", "macros"] }
|
|
# Enable the `time` crate's `macros` feature, for examples.
|
|
time = { version = "0.3.2", features = ["formatting", "macros"] }
|
|
|
|
[badges]
|
|
maintenance = { status = "experimental" }
|
|
|
|
[package.metadata.docs.rs]
|
|
all-features = true
|
|
rustdoc-args = ["--cfg", "docsrs"]
|
|
|
|
[[bench]]
|
|
name = "filter"
|
|
harness = false
|
|
|
|
[[bench]]
|
|
name = "filter_log"
|
|
harness = false
|
|
|
|
[[bench]]
|
|
name = "fmt"
|
|
harness = false
|
|
|
|
[[bench]]
|
|
name = "enter"
|
|
harness = false
|