metrics_server 0.16.0

A hassle-free, single-responsibility, safe HTTP/S server used to easily expose metrics in an application.
Documentation
# 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 = "2024"
rust-version = "1.85"
name = "metrics_server"
version = "0.16.0"
authors = ["Dan Bond <dan@loshz.com>"]
build = false
include = [
    "src/**/*",
    "tests",
    "examples",
    "Cargo.toml",
    "LICENSE",
    "README.md",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A hassle-free, single-responsibility, safe HTTP/S server used to easily expose metrics in an application."
documentation = "https://docs.rs/metrics_server"
readme = "README.md"
keywords = [
    "http",
    "server",
    "metrics",
]
categories = ["web-programming::http-server"]
license = "MIT"
repository = "https://codeberg.org/loshz/metrics_server"

[features]
default = []
tls = ["tiny_http/ssl-rustls"]

[lib]
name = "metrics_server"
path = "src/lib.rs"
doctest = false

[[example]]
name = "prometheus"
path = "examples/prometheus.rs"

[[test]]
name = "server"
path = "tests/server.rs"

[dependencies.http]
version = "1.4"

[dependencies.log]
version = "0.4"

[dependencies.time]
version = "0.3"
features = ["formatting"]

[dependencies.tiny_http]
version = "0.12"

[dev-dependencies.ctrlc]
version = "3.5"
features = ["termination"]

[dev-dependencies.env_logger]
version = "0.11"

[dev-dependencies.prometheus-client]
version = "0.24"

[dev-dependencies.reqwest]
version = "0.13"
features = ["blocking"]