[package]
edition = "2024"
name = "error-battery-pack"
version = "0.6.4"
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Error handling done well — anyhow for apps, thiserror for libraries"
readme = "README.md"
keywords = [
"battery-pack",
"error-handling",
"anyhow",
"thiserror",
"symposium",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/battery-pack-rs/battery-pack"
resolver = "2"
[package.metadata.battery-pack]
hidden = ["battery-pack"]
[features]
default = [
"anyhow",
"thiserror",
]
[lib]
name = "error_battery_pack"
path = "src/lib.rs"
[[example]]
name = "basic"
path = "examples/basic.rs"
[[example]]
name = "context-chain"
path = "examples/context-chain.rs"
[[example]]
name = "custom-errors"
path = "examples/custom-errors.rs"
[dependencies.anyhow]
version = "1"
optional = true
[dependencies.thiserror]
version = "2"
optional = true
[dev-dependencies.battery-pack]
version = "0.5"
features = ["cli"]
[build-dependencies.battery-pack]
version = "0.5"
features = ["build"]