# 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 = "emit_otlp"
version = "0.11.0-alpha.5"
authors = ["emit contributors"]
description = "Emit diagnostic events to an OpenTelemetry-compatible collector."
readme = "README.md"
keywords = [
    "logging",
    "tracing",
    "metrics",
    "observability",
]
categories = ["development-tools::debugging"]
license = "MIT OR Apache-2.0"
repository = "https://github.com/emit-rs/emit"

[dependencies.bytes]
version = "1"

[dependencies.emit]
version = "0.11.0-alpha.5"
features = [
    "std",
    "sval",
    "implicit_internal_rt",
]
default-features = false

[dependencies.emit_batcher]
version = "0.11.0-alpha.5"
features = ["tokio"]

[dependencies.flate2]
version = "1"
optional = true

[dependencies.hyper]
version = "1"
features = [
    "client",
    "http1",
    "http2",
]

[dependencies.rustls-native-certs]
version = "0.7"
optional = true

[dependencies.sval]
version = "2.10"
features = ["std"]

[dependencies.sval_buffer]
version = "2"
features = ["std"]

[dependencies.sval_derive]
version = "2.10"
features = [
    "std",
    "flatten",
]

[dependencies.sval_json]
version = "2"
features = ["std"]

[dependencies.sval_protobuf]
version = "0.1"
features = ["bytes"]

[dependencies.sval_ref]
version = "2.10"

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

[dependencies.tokio-rustls]
version = "0.26"
features = ["ring"]
optional = true
default-features = false

[dev-dependencies.emit]
version = "0.11.0-alpha.5"
features = ["implicit_rt"]

[dev-dependencies.prost]
version = "0.12"

[dev-dependencies.prost-types]
version = "0.12"

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

[features]
default = [
    "tls",
    "gzip",
]
gzip = ["flate2"]
tls = [
    "tokio-rustls",
    "rustls-native-certs",
]
