# 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 = "premortem"
version = "0.6.1"
authors = ["Glen Baker <iepathos@gmail.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A configuration library that performs a premortem on your app's config—finding all the ways it would die before it ever runs"
readme = "README.md"
keywords = [
    "configuration",
    "validation",
    "config",
    "settings",
    "premortem",
]
categories = [
    "config",
    "rust-patterns",
]
license = "MIT"
repository = "https://github.com/iepathos/premortem"

[features]
default = [
    "toml",
    "derive",
]
derive = ["premortem-derive"]
full = [
    "toml",
    "json",
    "yaml",
    "watch",
    "remote",
    "derive",
]
json = []
remote = []
toml = [
    "dep:toml",
    "dep:toml_edit",
]
watch = ["dep:notify"]
yaml = ["dep:serde_yaml"]

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

[[example]]
name = "basic"
path = "examples/basic/main.rs"

[[example]]
name = "env-validation"
path = "examples/env-validation/main.rs"

[[example]]
name = "error-demo"
path = "examples/error-demo/main.rs"

[[example]]
name = "layered"
path = "examples/layered/main.rs"

[[example]]
name = "layered-config"
path = "examples/layered-config/main.rs"

[[example]]
name = "predicates"
path = "examples/predicates/main.rs"

[[example]]
name = "testing"
path = "examples/testing/main.rs"

[[example]]
name = "tracing"
path = "examples/tracing/main.rs"

[[example]]
name = "validation"
path = "examples/validation/main.rs"

[[example]]
name = "watch"
path = "examples/watch/main.rs"
required-features = ["watch"]

[[example]]
name = "web-server"
path = "examples/web-server/main.rs"

[[example]]
name = "yaml"
path = "examples/yaml/main.rs"
required-features = ["yaml"]

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

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

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

[[bench]]
name = "env_validation"
path = "benches/env_validation.rs"
harness = false

[dependencies.notify]
version = "6.1"
optional = true

[dependencies.premortem-derive]
version = "0.3.0"
optional = true

[dependencies.regex]
version = "1.10"

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

[dependencies.serde_json]
version = "1.0"

[dependencies.serde_yaml]
version = "0.9"
optional = true

[dependencies.stillwater]
version = "0.13.0"

[dependencies.thiserror]
version = "1.0"

[dependencies.toml]
version = "0.9"
optional = true

[dependencies.toml_edit]
version = "0.23"
optional = true

[dev-dependencies.axum]
version = "0.8"

[dev-dependencies.criterion]
version = "0.8"

[dev-dependencies.premortem-derive]
version = "0.3.0"

[dev-dependencies.proptest]
version = "1.5"

[dev-dependencies.tempfile]
version = "3.23.0"

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

[dev-dependencies.tokio-test]
version = "0.4"

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

[dev-dependencies.tracing-subscriber]
version = "0.3"
