[package] name = "console-subscriber" version = "0.3.0" license = "MIT" edition = "2021" rust-version = "1.74.0" authors = ["Eliza Weisman ", "Tokio Contributors ",] readme = "README.md" repository = "https://github.com/tokio-rs/console/" homepage = "https://github.com/tokio-rs/console/blob/main/console-subscriber" description = """ A `tracing-subscriber::Layer` for collecting Tokio console telemetry. """ categories = [ "development-tools::debugging", "development-tools::profiling", "asynchronous", ] keywords = [ "tracing", "tracing-subscriber", "tokio-console", "debugging", "async", ] [features] default = ["env-filter"] parking_lot = ["parking_lot_crate", "tracing-subscriber/parking_lot"] env-filter = ["tracing-subscriber/env-filter"] grpc-web = ["tonic-web"] [dependencies] crossbeam-utils = "0.8.7" tokio = { version = "^1.21", features = ["sync", "time", "macros", "tracing"] } tokio-stream = { version = "0.1", features = ["net"] } thread_local = "1.1.3" console-api = { version = "0.7.0", path = "../console-api", features = ["transport"] } tonic = { version = "0.11", features = ["transport"] } tracing-core = "0.1.24" tracing = "0.1.26" tracing-subscriber = { version = "0.3.17", default-features = false, features = ["fmt", "registry"] } futures-task = { version = "0.3", default-features = false } hdrhistogram = { version = "7.3.0", default-features = false, features = ["serialization"] } # The parking_lot dependency is renamed, because we want our `parking_lot` # feature to also enable `tracing-subscriber`'s parking_lot feature flag. parking_lot_crate = { package = "parking_lot", version = "0.12", optional = true } humantime = "2.1.0" prost = "0.12" prost-types = "0.12.0" # Required for recording: serde = { version = "1", features = ["derive"] } serde_json = "1" crossbeam-channel = "0.5" # Only for the web feature: tonic-web = { version = "0.11", optional = true } [dev-dependencies] tokio = { version = "^1.21", features = ["full", "rt-multi-thread"] } tower = { version = "0.4", default-features = false } futures = "0.3" http = "0.2" tower-http = { version = "0.4", features = ["cors"] } [package.metadata.docs.rs] all-features = true rustdoc-args = ["--cfg", "docsrs"] [[example]] name = "grpc_web" required-features = ["grpc-web"]