# 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"
name = "id_effect_opentelemetry"
version = "0.3.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "OpenTelemetry tracing and metrics integration for id_effect (Phase B / @effect/opentelemetry parity)"
readme = "README.md"
keywords = [
    "effect",
    "opentelemetry",
    "tracing",
    "observability",
]
categories = ["development-tools"]
license = "CC-BY-SA-4.0"
repository = "https://github.com/Industrial/id_effect"
resolver = "2"

[features]
config = ["dep:id_effect_config"]
default = ["otlp"]
otlp = [
    "dep:opentelemetry-otlp",
    "dep:opentelemetry-semantic-conventions",
]
platform = ["dep:id_effect_platform"]

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

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

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

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

[dependencies.axum]
version = "0.8"

[dependencies.http]
version = "1"

[dependencies.id_effect]
version = "0.3.0"

[dependencies.id_effect_config]
version = "0.3.0"
optional = true

[dependencies.id_effect_logger]
version = "0.3.0"

[dependencies.id_effect_platform]
version = "0.3.0"
optional = true

[dependencies.opentelemetry]
version = "0.32"
features = [
    "trace",
    "metrics",
    "logs",
]
default-features = false

[dependencies.opentelemetry-appender-tracing]
version = "0.32"

[dependencies.opentelemetry-otlp]
version = "0.32"
features = [
    "trace",
    "metrics",
    "logs",
    "grpc-tonic",
    "http-proto",
]
optional = true
default-features = false

[dependencies.opentelemetry-semantic-conventions]
version = "0.32"
optional = true

[dependencies.opentelemetry_sdk]
version = "0.32"
features = [
    "trace",
    "metrics",
    "logs",
    "rt-tokio",
    "testing",
]
default-features = false

[dependencies.tokio]
version = "1.50.0"
features = [
    "macros",
    "rt",
    "signal",
]
default-features = false

[dependencies.tokio-stream]
version = "0.1.3"
features = ["time"]
default-features = false

[dependencies.tracing]
version = "0.1"

[dependencies.tracing-opentelemetry]
version = "0.33"

[dependencies.tracing-subscriber]
version = "0.3"
features = [
    "registry",
    "fmt",
    "std",
    "env-filter",
]
default-features = false

[dev-dependencies.tokio]
version = "1.50.0"
features = [
    "macros",
    "rt-multi-thread",
    "signal",
]

[dev-dependencies.tower]
version = "0.5"
features = ["util"]

[lints.rust]
unsafe_code = "forbid"

[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = ["cfg(coverage)"]
