[package] name = "tokio-metrics-collector" version = "0.2.3" authors = ["Hanaasagi "] license = "MIT OR Apache-2.0" edition = "2021" repository = "https://github.com/Hanaasagi/tokio-metrics-collector" description = """ Provides utilities for collecting Prometheus-compatible metrics from Tokio runtime and tasks. """ keywords = ["metrics", "tokio", "prometheus"] categories = ["development-tools"] [features] default = ["rt"] rt = ["tokio"] [dependencies] lazy_static = "1.5.0" prometheus = "0.13.4" tokio-metrics = "0.3.1" tokio = { version = "1.39.2", features = ["rt"], optional = true } parking_lot = "0.12.3" [dev-dependencies] axum = "0.7" tokio = { version = "1.39.2", features = ["rt", "macros", "rt-multi-thread"]} tracing-subscriber = "0.3.18" [package.metadata.docs.rs] all-features = true # enable unstable features in the documentation rustdoc-args = ["--cfg", "docsrs", "--cfg", "tokio_unstable"] # it's necessary to _also_ pass `--cfg tokio_unstable` to rustc, or else # dependencies will not be enabled, and the docs build will fail. rustc-args = ["--cfg", "tokio_unstable"]