• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1[package]
2name = "tracing-subscriber"
3version = "0.3.18"
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.63.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", "nu-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.30", 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.6.0", default-features = false, features = ["std", "unicode-case", "unicode-perl"] }
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.2.0", optional = true, default-features = false, features = ["log-tracer", "std"] }
52nu-ansi-term = { version = "0.46.0", 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 }
62chrono = { version = "0.4.26", default-features = false, features = ["clock", "std"], optional = true }
63
64# registry
65sharded-slab = { version = "0.1.4", optional = true }
66thread_local = { version = "1.1.4", optional = true }
67
68[target.'cfg(tracing_unstable)'.dependencies]
69valuable_crate = { package = "valuable", version = "0.1.0", optional = true, default-features = false }
70valuable-serde = { version = "0.1.0", optional = true, default-features = false }
71
72[dev-dependencies]
73tracing = { path = "../tracing", version = "0.1.35" }
74tracing-mock = { path = "../tracing-mock", features = ["tracing-subscriber"] }
75log = "0.4.17"
76tracing-log = { path = "../tracing-log", version = "0.2.0" }
77criterion = { version = "0.3.6", default-features = false }
78regex = { version = "1", default-features = false, features = ["std"] }
79tracing-futures = { path = "../tracing-futures", version = "0.2.0", default-features = false, features = ["std-future", "std"] }
80tokio = { version = "1", features = ["rt", "macros"] }
81# Enable the `time` crate's `macros` feature, for examples.
82time = { version = "0.3.2", features = ["formatting", "macros"] }
83
84[badges]
85maintenance = { status = "experimental" }
86
87[package.metadata.docs.rs]
88all-features = true
89rustdoc-args = ["--cfg", "docsrs"]
90
91[[bench]]
92name = "filter"
93harness = false
94
95[[bench]]
96name = "filter_log"
97harness = false
98
99[[bench]]
100name = "fmt"
101harness = false
102
103[[bench]]
104name = "enter"
105harness = false
106