# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2018"
rust-version = "1.65.0"
name = "tracing-subscriber"
version = "0.3.23"
authors = [
    "Eliza Weisman <eliza@buoyant.io>",
    "David Barsky <me@davidbarsky.com>",
    "Tokio Contributors <team@tokio.rs>",
]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = """
Utilities for implementing and composing `tracing` subscribers.
"""
homepage = "https://tokio.rs"
readme = "README.md"
keywords = [
    "logging",
    "tracing",
    "metrics",
    "subscriber",
]
categories = [
    "development-tools::debugging",
    "development-tools::profiling",
    "asynchronous",
]
license = "MIT"
repository = "https://github.com/tokio-rs/tracing"
resolver = "2"

[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
    "--cfg",
    "docsrs",
]

[badges.maintenance]
status = "experimental"

[features]
alloc = []
ansi = [
    "fmt",
    "nu-ansi-term",
]
default = [
    "smallvec",
    "fmt",
    "ansi",
    "tracing-log",
    "std",
]
env-filter = [
    "matchers",
    "once_cell",
    "tracing",
    "std",
    "thread_local",
    "dep:regex-automata",
]
fmt = [
    "registry",
    "std",
]
json = [
    "tracing-serde",
    "serde",
    "serde_json",
]
local-time = ["time/local-offset"]
nu-ansi-term = ["dep:nu-ansi-term"]
regex = []
registry = [
    "sharded-slab",
    "thread_local",
    "std",
]
std = [
    "alloc",
    "tracing-core/std",
]
valuable = [
    "tracing-core/valuable",
    "valuable_crate",
    "valuable-serde",
    "tracing-serde/valuable",
]

[lib]
name = "tracing_subscriber"
path = "src/lib.rs"

[[test]]
name = "ansi_escaping"
path = "tests/ansi_escaping.rs"

[[test]]
name = "cached_layer_filters_dont_break_other_layers"
path = "tests/cached_layer_filters_dont_break_other_layers.rs"

[[test]]
name = "duplicate_spans"
path = "tests/duplicate_spans.rs"

[[test]]
name = "env_filter"
path = "tests/env_filter/main.rs"

[[test]]
name = "event_enabling"
path = "tests/event_enabling.rs"

[[test]]
name = "field_filter"
path = "tests/field_filter.rs"

[[test]]
name = "filter_log"
path = "tests/filter_log.rs"

[[test]]
name = "fmt_max_level_hint"
path = "tests/fmt_max_level_hint.rs"

[[test]]
name = "hinted_layer_filters_dont_break_other_layers"
path = "tests/hinted_layer_filters_dont_break_other_layers.rs"

[[test]]
name = "layer_filter_interests_are_cached"
path = "tests/layer_filter_interests_are_cached.rs"

[[test]]
name = "layer_filters"
path = "tests/layer_filters/main.rs"

[[test]]
name = "multiple_layer_filter_interests_cached"
path = "tests/multiple_layer_filter_interests_cached.rs"

[[test]]
name = "on_register_dispatch_is_called"
path = "tests/on_register_dispatch_is_called.rs"

[[test]]
name = "option"
path = "tests/option.rs"

[[test]]
name = "option_filter_interest_caching"
path = "tests/option_filter_interest_caching.rs"

[[test]]
name = "registry_max_level_hint"
path = "tests/registry_max_level_hint.rs"

[[test]]
name = "registry_span_instrument_drop"
path = "tests/registry_span_instrument_drop.rs"

[[test]]
name = "registry_with_subscriber"
path = "tests/registry_with_subscriber.rs"

[[test]]
name = "reload"
path = "tests/reload.rs"

[[test]]
name = "reload_max_log_level"
path = "tests/reload_max_log_level.rs"

[[test]]
name = "same_len_filters"
path = "tests/same_len_filters.rs"

[[test]]
name = "unhinted_layer_filters_dont_break_other_layers"
path = "tests/unhinted_layer_filters_dont_break_other_layers.rs"

[[test]]
name = "utils"
path = "tests/utils.rs"

[[test]]
name = "vec"
path = "tests/vec.rs"

[[test]]
name = "vec_subscriber_filter_interests_cached"
path = "tests/vec_subscriber_filter_interests_cached.rs"

[[bench]]
name = "enter"
path = "benches/enter.rs"
harness = false

[[bench]]
name = "filter"
path = "benches/filter.rs"
harness = false

[[bench]]
name = "filter_log"
path = "benches/filter_log.rs"
harness = false

[[bench]]
name = "fmt"
path = "benches/fmt.rs"
harness = false

[dependencies.chrono]
version = "0.4.26"
features = [
    "clock",
    "std",
]
optional = true
default-features = false

[dependencies.matchers]
version = "0.2.0"
optional = true

[dependencies.nu-ansi-term]
version = "0.50.0"
optional = true

[dependencies.once_cell]
version = "1.13.0"
optional = true

[dependencies.parking_lot]
version = "0.12.1"
optional = true

[dependencies.regex-automata]
version = "0.4"
features = ["std"]
optional = true
default-features = false

[dependencies.serde]
version = "1.0.140"
optional = true

[dependencies.serde_json]
version = "1.0.82"
optional = true

[dependencies.sharded-slab]
version = "0.1.4"
optional = true

[dependencies.smallvec]
version = "1.9.0"
optional = true

[dependencies.thread_local]
version = "1.1.4"
optional = true

[dependencies.time]
version = "0.3.2"
features = ["formatting"]
optional = true

[dependencies.tracing]
version = "0.1.43"
optional = true
default-features = false

[dependencies.tracing-core]
version = "0.1.35"
default-features = false

[dependencies.tracing-log]
version = "0.2.0"
features = [
    "log-tracer",
    "std",
]
optional = true
default-features = false

[dependencies.tracing-serde]
version = "0.2.0"
optional = true

[dev-dependencies.criterion]
version = "0.3.6"
default-features = false

[dev-dependencies.log]
version = "0.4.17"

[dev-dependencies.regex]
version = "1"
features = ["std"]
default-features = false

[dev-dependencies.time]
version = "0.3.2"
features = [
    "formatting",
    "macros",
]

[dev-dependencies.tokio]
version = "1"
features = [
    "rt",
    "rt-multi-thread",
    "macros",
]

[dev-dependencies.tracing]
version = "0.1.43"

[dev-dependencies.tracing-futures]
version = "0.2.0"
features = [
    "std-future",
    "std",
]
default-features = false

[dev-dependencies.tracing-log]
version = "0.2.0"

[target."cfg(tracing_unstable)".dependencies.valuable-serde]
version = "0.1.0"
optional = true
default-features = false

[target."cfg(tracing_unstable)".dependencies.valuable_crate]
version = "0.1.0"
optional = true
default-features = false
package = "valuable"

[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = [
    "cfg(flaky_tests)",
    "cfg(tracing_unstable)",
    "cfg(unsound_local_offset)",
]
