# 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"
rust-version = "1.75.0"
name = "opentelemetry-prometheus"
version = "0.28.0"
build = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Prometheus exporter for OpenTelemetry"
homepage = "https://github.com/open-telemetry/opentelemetry-rust"
readme = "README.md"
keywords = [
    "opentelemetry",
    "prometheus",
    "metrics",
    "async",
]
categories = [
    "development-tools::debugging",
    "development-tools::profiling",
    "asynchronous",
]
license = "Apache-2.0"
repository = "https://github.com/open-telemetry/opentelemetry-rust"

[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
    "--cfg",
    "docsrs",
]

[lib]
name = "opentelemetry_prometheus"
path = "src/lib.rs"

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

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

[dependencies.once_cell]
version = "1.13"

[dependencies.opentelemetry]
version = "0.28"
features = ["metrics"]
default-features = false

[dependencies.opentelemetry_sdk]
version = "0.28"
features = ["metrics"]
default-features = false

[dependencies.prometheus]
version = "0.13"

[dependencies.protobuf]
version = "2.14"

[dependencies.tracing]
version = ">=0.1.40"
optional = true
default-features = false

[dev-dependencies.http-body-util]
version = "0.1"

[dev-dependencies.hyper]
version = "1.3"
features = ["full"]

[dev-dependencies.hyper-util]
version = "0.1"
features = ["full"]

[dev-dependencies.opentelemetry-semantic-conventions]
version = "0.28"

[dev-dependencies.tokio]
version = "1"
features = ["full"]

[features]
default = ["internal-logs"]
internal-logs = ["tracing"]
prometheus-encoding = []