# 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.91.1"
name = "mock-collector"
version = "0.2.11"
authors = ["Daniel Verrall"]
build = false
exclude = [
    ".gitmodules",
    "opentelemetry-proto-examples/",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Mock OpenTelemetry OTLP collector server for testing"
homepage = "https://github.com/djvcom/mock-collector"
documentation = "https://docs.rs/mock-collector"
readme = "README.md"
keywords = [
    "opentelemetry",
    "testing",
    "mock",
    "otlp",
    "observability",
]
categories = ["development-tools::testing"]
license = "MIT"
repository = "https://github.com/djvcom/mock-collector"

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

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

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

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

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

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

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

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

[dependencies.axum]
version = "0.8.9"

[dependencies.opentelemetry-otlp]
version = "0.31.1"
features = ["http-proto"]
default-features = false

[dependencies.opentelemetry-proto]
version = "0.31.0"

[dependencies.prost]
version = "0.14.3"

[dependencies.serde]
version = "1.0.228"
features = ["derive"]

[dependencies.serde_json]
version = "1.0.149"

[dependencies.thiserror]
version = "2.0.18"

[dependencies.tokio]
version = "1.52.0"
features = [
    "macros",
    "net",
    "rt-multi-thread",
    "sync",
]

[dependencies.tokio-stream]
version = "0.1.18"

[dependencies.tonic]
version = "0.14.5"
features = [
    "gzip",
    "zstd",
]

[dependencies.tower-http]
version = "0.6.8"
features = [
    "decompression-gzip",
    "decompression-zstd",
]
default-features = false

[dev-dependencies.flate2]
version = "1.1.9"

[dev-dependencies.opentelemetry]
version = "0.31.0"

[dev-dependencies.reqwest]
version = "0.12.28"
features = [
    "json",
    "rustls-tls",
]
default-features = false

[dev-dependencies.tracing]
version = "0.1.44"

[dev-dependencies.zstd]
version = "0.13.3"

[lints.clippy]
expect_used = "deny"
panic = "deny"
unwrap_used = "deny"
