forked from mladedav/json-subscriber
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
67 lines (56 loc) · 2.33 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
[package]
name = "json-subscriber"
description = "Customizable layer and subscriber for `tracing` that emits logs in JSON"
version = "0.2.3"
edition = "2021"
rust-version = "1.65"
homepage = "https://github.com/mladedav/json-subscriber"
keywords = ["logging", "tracing", "json", "subscriber"]
license = "MIT"
readme = "README.md"
repository = "https://github.com/mladedav/json-subscriber"
[features]
default = []
tracing-log = ["tracing-subscriber/tracing-log", "dep:tracing-log"]
env-filter = ["tracing-subscriber/env-filter"]
opentelemetry = ["dep:tracing-opentelemetry", "dep:opentelemetry", "dep:async-trait"]
# Required for intra-doc links to resolve correctly
__private_docs = ["tracing-subscriber/time", "tracing-subscriber/local-time"]
[dependencies]
serde = "1.0.202"
serde_json = "1.0.117"
uuid = { version = "1.10.0", features = ["v4"] }
tracing = { version = "0.1.40", default-features = false, features = ["std"] }
tracing-core = { version = "0.1.32", default-features = false }
tracing-log = { version = "0.2.0", default-features = false, optional = true }
tracing-serde = { version = "0.1.3", default-features = false }
tracing-subscriber = { version = "0.3.18", default-features = false, features = [
"std",
"registry",
"fmt",
] }
# OpenTelemetry
tracing-opentelemetry = { version = "0.25.0", default-features = false, optional = true }
opentelemetry = { version = "0.24.0", default-features = false, optional = true }
# OpenTelemetry depends on this but with a version such that minimal versions are broken. We do not use this.
async-trait = { version = "0.1.9", default-features = false, optional = true }
# Another dependency that needs to have higher version to compile
lazy_static = { version = "1.1.0", default-features = false, optional = true }
[dev-dependencies]
criterion = { version = "0.5.1", default-features = false }
snafu = "0.6.10"
thiserror = "1.0.31"
tracing = { version = "0.1", features = ["attributes"] }
tracing-subscriber = { version = "0.3", features = ["env-filter", "json"] }
opentelemetry_sdk = { version = "0.24.1", default-features = false }
opentelemetry-stdout = "0.5"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]
[lib]
bench = false
[[bench]]
name = "tracing_subscriber"
harness = false
[lints.rust]
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(bench_tracing_baseline)'] }