1[package] 2name = "tracing-subscriber" 3version = "0.3.15" 4authors = [ 5 "Eliza Weisman <eliza@buoyant.io>", 6 "David Barsky <me@davidbarsky.com>", 7 "Tokio Contributors <team@tokio.rs>", 8] 9edition = "2018" 10license = "MIT" 11readme = "README.md" 12repository = "https://github.com/tokio-rs/tracing" 13homepage = "https://tokio.rs" 14description = """ 15Utilities for implementing and composing `tracing` subscribers. 16""" 17categories = [ 18 "development-tools::debugging", 19 "development-tools::profiling", 20 "asynchronous", 21] 22keywords = ["logging", "tracing", "metrics", "subscriber"] 23rust-version = "1.49.0" 24 25[features] 26 27default = ["smallvec", "fmt", "ansi", "tracing-log", "std"] 28alloc = [] 29std = ["alloc", "tracing-core/std"] 30env-filter = ["matchers", "regex", "once_cell", "tracing", "std", "thread_local"] 31fmt = ["registry", "std"] 32ansi = ["fmt", "ansi_term"] 33registry = ["sharded-slab", "thread_local", "std"] 34json = ["tracing-serde", "serde", "serde_json"] 35valuable = ["tracing-core/valuable", "valuable_crate", "valuable-serde", "tracing-serde/valuable"] 36# Enables support for local time when using the `time` crate timestamp 37# formatters. 38local-time = ["time/local-offset"] 39 40[dependencies] 41tracing-core = { path = "../tracing-core", version = "0.1.28", default-features = false } 42 43# only required by the filter feature 44tracing = { optional = true, path = "../tracing", version = "0.1.35", default-features = false } 45matchers = { optional = true, version = "0.1.0" } 46regex = { optional = true, version = "1", default-features = false, features = ["std"] } 47smallvec = { optional = true, version = "1.9.0" } 48once_cell = { optional = true, version = "1.13.0" } 49 50# fmt 51tracing-log = { path = "../tracing-log", version = "0.1.3", optional = true, default-features = false, features = ["log-tracer", "std"] } 52ansi_term = { version = "0.12.1", optional = true } 53time = { version = "0.3.2", features = ["formatting"], optional = true } 54 55# only required by the json feature 56serde_json = { version = "1.0.82", optional = true } 57serde = { version = "1.0.140", optional = true } 58tracing-serde = { path = "../tracing-serde", version = "0.1.3", optional = true } 59 60# opt-in deps 61parking_lot = { version = "0.12.1", optional = true } 62 63# registry 64sharded-slab = { version = "0.1.4", optional = true } 65thread_local = { version = "1.1.4", optional = true } 66 67[target.'cfg(tracing_unstable)'.dependencies] 68valuable_crate = { package = "valuable", version = "0.1.0", optional = true, default-features = false } 69valuable-serde = { version = "0.1.0", optional = true, default-features = false } 70 71[dev-dependencies] 72tracing = { path = "../tracing", version = "0.1.35" } 73tracing-mock = { path = "../tracing-mock" } 74log = "0.4.17" 75tracing-log = { path = "../tracing-log", version = "0.1.3" } 76criterion = { version = "0.3.6", default-features = false } 77regex = { version = "1", default-features = false, features = ["std"] } 78tracing-futures = { path = "../tracing-futures", version = "0.2.0", default-features = false, features = ["std-future", "std"] } 79tokio = { version = "1", features = ["rt", "macros"] } 80# Enable the `time` crate's `macros` feature, for examples. 81time = { version = "0.3.2", features = ["formatting", "macros"] } 82 83[badges] 84maintenance = { status = "experimental" } 85 86[package.metadata.docs.rs] 87all-features = true 88rustdoc-args = ["--cfg", "docsrs"] 89 90[[bench]] 91name = "filter" 92harness = false 93 94[[bench]] 95name = "filter_log" 96harness = false 97 98[[bench]] 99name = "fmt" 100harness = false 101 102[[bench]] 103name = "enter" 104harness = false 105