# 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" name = "axum-prometheus" version = "0.7.0" description = "A tower middleware to collect and export HTTP metrics for Axum" homepage = "https://github.com/Ptrskay3/axum-prometheus" readme = "README.md" keywords = [ "axum", "prometheus", "metrics", ] categories = [ "asynchronous", "network-programming", "web-programming", "development-tools::profiling", ] license = "MIT" repository = "https://github.com/Ptrskay3/axum-prometheus" [dependencies.axum] version = "0.7.1" [dependencies.bytes] version = "1.2.1" [dependencies.futures-core] version = "0.3.24" [dependencies.http] version = "1.0.0" [dependencies.http-body] version = "1.0.0" [dependencies.matchit] version = "0.7" [dependencies.metrics] version = "0.23.0" [dependencies.metrics-exporter-prometheus] version = "0.15.0" features = ["http-listener"] optional = true default-features = false [dependencies.once_cell] version = "1.17.0" [dependencies.pin-project] version = "1.0.12" [dependencies.tokio] version = "1.20.1" features = [ "rt-multi-thread", "macros", ] [dependencies.tower] version = "0.4.13" [dependencies.tower-http] version = "0.5.0" [dev-dependencies.http-body-util] version = "0.1.0" [dev-dependencies.hyper] version = "1.0.1" [dev-dependencies.insta] version = "1.31.0" features = [ "yaml", "filters", ] [features] default = ["prometheus"] prometheus = ["metrics-exporter-prometheus"] push-gateway = ["metrics-exporter-prometheus/push-gateway"]