[dependencies.notify]
optional = true
version = "6.1"
[dependencies.premortem-derive]
optional = true
version = "0.2.0"
[dependencies.regex]
version = "1.10"
[dependencies.serde]
features = ["derive"]
version = "1.0"
[dependencies.serde_json]
version = "1.0"
[dependencies.stillwater]
version = "0.8"
[dependencies.thiserror]
version = "1.0"
[dependencies.toml]
optional = true
version = "0.8"
[dependencies.toml_edit]
optional = true
version = "0.22"
[dev-dependencies.axum]
version = "0.8"
[dev-dependencies.premortem-derive]
version = "0.2.0"
[dev-dependencies.proptest]
version = "1.5"
[dev-dependencies.tokio]
features = ["full"]
version = "1"
[dev-dependencies.tokio-test]
version = "0.4"
[dev-dependencies.tracing]
version = "0.1"
[dev-dependencies.tracing-subscriber]
version = "0.3"
[[example]]
name = "basic"
path = "examples/basic/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 = "testing"
path = "examples/testing/main.rs"
[[example]]
name = "tracing"
path = "examples/tracing/main.rs"
[[example]]
name = "validation"
path = "examples/validation/main.rs"
[[example]]
name = "web-server"
path = "examples/web-server/main.rs"
[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 = []
[lib]
name = "premortem"
path = "src/lib.rs"
[package]
authors = ["Glen Baker <iepathos@gmail.com>"]
autobenches = false
autobins = false
autoexamples = false
autolib = false
autotests = false
build = false
categories = ["config", "rust-patterns"]
description = "A configuration library that performs a premortem on your app's config—finding all the ways it would die before it ever runs"
edition = "2021"
keywords = ["configuration", "validation", "config", "settings", "premortem"]
license = "MIT"
name = "premortem"
readme = "README.md"
repository = "https://github.com/iepathos/premortem"
version = "0.2.0"
[[test]]
name = "derive_tests"
path = "tests/derive_tests.rs"
[[test]]
name = "property_tests"
path = "tests/property_tests.rs"