# 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"
name = "moenia"
version = "0.1.0"
build = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Defensive circuit breaker library for Rust"
readme = "README.md"
keywords = [
    "circuit-breaker",
    "resilience",
    "fault-tolerance",
    "tower",
    "async",
]
categories = [
    "network-programming",
    "asynchronous",
]
license = "Unlicense"
repository = "https://github.com/sphaso/moenia"

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

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

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

[dependencies.futures]
version = "0.3"
optional = true

[dependencies.opentelemetry]
version = "0.27"
optional = true

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

[dependencies.serde]
version = "1"
features = ["derive"]
optional = true

[dependencies.thiserror]
version = "2"

[dependencies.tower]
version = "0.5"
features = ["util"]
optional = true

[dependencies.tower-layer]
version = "0.3"
optional = true

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

[features]
default = []
otel = [
    "dep:opentelemetry",
    "dep:opentelemetry-semantic-conventions",
]
serde = ["dep:serde"]
tower = [
    "dep:tower",
    "dep:tower-layer",
    "dep:futures",
]
