# 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 = "valensas-actuator" version = "0.4.1" description = "A library that provides Prometheus metrics collection capabilities for Rocket applications." readme = "README.md" license = "MIT" repository = "https://github.com/Valensas/rust-actuator" [[example]] name = "health" required-features = [ "health", "health-diesel", ] [[example]] name = "prometheus" required-features = ["prometheus-rocket"] [[example]] name = "prometheus_tonic" required-features = [ "prometheus-rocket", "prometheus-tonic", ] [[example]] name = "prometheus_r2d2" required-features = [ "prometheus-rocket", "prometheus-r2d2", ] [[example]] name = "prometheus_tokio" required-features = [ "prometheus-rocket", "prometheus-tokio", ] [dependencies.async-trait] version = "0.1.73" [dependencies.diesel] version = "2.1.0" optional = true [dependencies.futures] version = "0.3.28" optional = true [dependencies.log] version = "0.4.20" [dependencies.prometheus] version = "0.13.3" optional = true [dependencies.r2d2] version = "0.8.10" optional = true [dependencies.rocket] version = "0.5.0-rc.3" features = ["json"] [dependencies.serde] version = "1.0.185" optional = true [dependencies.tokio] version = "1.32.0" optional = true [dependencies.tonic] version = "0.10.1" optional = true [dependencies.tonic-health] version = "0.10.1" optional = true [dependencies.tower] version = "0.4.13" optional = true [dev-dependencies.diesel] version = "2.1.0" features = [ "sqlite", "r2d2", ] [dev-dependencies.r2d2] version = "0.8.10" [dev-dependencies.tokio] version = "1.32.0" [dev-dependencies.tonic-health] version = "0.10.1" [features] health = [ "dep:serde", "dep:futures", ] health-diesel = [ "health", "dep:diesel", ] health-tonic = [ "health", "dep:tonic", "dep:tonic-health", ] prometheus-r2d2 = [ "prometheus-rocket", "dep:r2d2", ] prometheus-rocket = ["dep:prometheus"] prometheus-tokio = [ "prometheus-rocket", "dep:tokio", ] prometheus-tonic = [ "prometheus-rocket", "dep:tonic", "dep:tower", ]