# 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 = "2021" rust-version = "1.65" name = "json-subscriber" version = "0.2.4" build = false autobins = false autoexamples = false autotests = false autobenches = false description = "Customizable layer and subscriber for `tracing` that emits logs in JSON" homepage = "https://github.com/mladedav/json-subscriber" readme = "README.md" keywords = [ "logging", "tracing", "json", "subscriber", ] license = "MIT" repository = "https://github.com/mladedav/json-subscriber" [package.metadata.docs.rs] all-features = true rustdoc-args = [ "--cfg", "docsrs", ] [lib] name = "json_subscriber" path = "src/lib.rs" bench = false [[example]] name = "custom-from-event-or-span" path = "examples/custom-from-event-or-span.rs" [[example]] name = "readme-opentelemetry" path = "examples/readme-opentelemetry.rs" [[example]] name = "tracing-subscriber-json-example" path = "examples/tracing-subscriber-json-example.rs" [[example]] name = "tracing-subscriber-readme" path = "examples/tracing-subscriber-readme.rs" [[example]] name = "tracing-subscriber-readme-2" path = "examples/tracing-subscriber-readme-2.rs" [[bench]] name = "tracing_subscriber" path = "benches/tracing_subscriber.rs" harness = false [dependencies.async-trait] version = "0.1.9" optional = true default-features = false [dependencies.lazy_static] version = "1.1.0" optional = true default-features = false [dependencies.opentelemetry] version = "0.24.0" optional = true default-features = false [dependencies.serde] version = "1.0.202" [dependencies.serde_json] version = "1.0.117" [dependencies.tracing] version = "0.1.40" features = ["std"] default-features = false [dependencies.tracing-core] version = "0.1.32" default-features = false [dependencies.tracing-log] version = "0.2.0" optional = true default-features = false [dependencies.tracing-opentelemetry] version = "0.25.0" optional = true default-features = false [dependencies.tracing-serde] version = "0.1.3" default-features = false [dependencies.tracing-subscriber] version = "0.3.18" features = [ "std", "registry", "fmt", ] default-features = false [dependencies.uuid] version = "1.10.0" features = ["v4"] [dev-dependencies.criterion] version = "0.5.1" default-features = false [dev-dependencies.opentelemetry-stdout] version = "0.5" [dev-dependencies.opentelemetry_sdk] version = "0.24.1" default-features = false [dev-dependencies.snafu] version = "0.6.10" [dev-dependencies.thiserror] version = "1.0.31" [dev-dependencies.tracing] version = "0.1" features = ["attributes"] [dev-dependencies.tracing-subscriber] version = "0.3" features = [ "env-filter", "json", ] [features] __private_docs = [ "tracing-subscriber/time", "tracing-subscriber/local-time", ] default = [] env-filter = ["tracing-subscriber/env-filter"] opentelemetry = [ "dep:tracing-opentelemetry", "dep:opentelemetry", "dep:async-trait", ] tracing-log = [ "tracing-subscriber/tracing-log", "dep:tracing-log", ] [lints.rust.unexpected_cfgs] level = "warn" priority = 0 check-cfg = ["cfg(bench_tracing_baseline)"]