[package]
edition = "2021"
rust-version = "1.81"
name = "error-forge"
version = "0.9.8"
authors = ["James Gober <me@jamesgober.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Pragmatic Rust error-handling framework with stable error metadata, contextual diagnostics, optional async support, and synchronous recovery primitives (retry, circuit-breaker, backoff). Optional #[derive(ModError)], declarative define_errors!, and feature-gated logging / tracing / serde adapters."
homepage = "https://github.com/jamesgober/error-forge"
documentation = "https://docs.rs/error-forge"
readme = "README.md"
keywords = [
"error",
"error-handling",
"async",
"resilience",
"circuit-breaker",
]
categories = [
"rust-patterns",
"development-tools::debugging",
"asynchronous",
"development-tools",
]
license = "Apache-2.0"
repository = "https://github.com/jamesgober/error-forge"
[package.metadata.docs.rs]
all-features = true
features = [
"derive",
"serde",
"console",
"backtrace",
]
rustdoc-args = [
"--cfg",
"docsrs",
]
[features]
async = ["dep:async-trait"]
backtrace = []
collector = []
console = []
context = []
default = []
derive = ["error-forge-derive"]
log = ["dep:log"]
registry = []
serde = ["dep:serde"]
tracing = ["dep:tracing"]
[lib]
name = "error_forge"
path = "src/lib.rs"
[[example]]
name = "async_example"
path = "examples/async_example.rs"
[[example]]
name = "basic"
path = "examples/basic.rs"
[[example]]
name = "derive_example"
path = "examples/derive_example.rs"
[[test]]
name = "async_test"
path = "tests/async_test.rs"
[[test]]
name = "basic_test"
path = "tests/basic_test.rs"
[[test]]
name = "collector_test"
path = "tests/collector_test.rs"
[[test]]
name = "context_test"
path = "tests/context_test.rs"
[[test]]
name = "derive_macro_test"
path = "tests/derive_macro_test.rs"
[[test]]
name = "integration_test"
path = "tests/integration_test.rs"
[[test]]
name = "logging_test"
path = "tests/logging_test.rs"
[[test]]
name = "macro_test"
path = "tests/macro_test.rs"
[[test]]
name = "recovery_test"
path = "tests/recovery_test.rs"
[[test]]
name = "registry_test"
path = "tests/registry_test.rs"
[[test]]
name = "thread_safety_test"
path = "tests/thread_safety_test.rs"
[dependencies.async-trait]
version = "0.1.74"
optional = true
[dependencies.error-forge-derive]
version = "0.9.8"
optional = true
[dependencies.log]
version = "0.4"
optional = true
[dependencies.pastey]
version = "0.2"
[dependencies.rand]
version = "0.8.5"
[dependencies.serde]
version = "1.0"
features = ["derive"]
optional = true
[dependencies.thiserror]
version = "1.0"
[dependencies.tracing]
version = "0.1"
optional = true
[dev-dependencies.serde_json]
version = "1.0"
[dev-dependencies.tokio]
version = "1.0"
features = [
"full",
"test-util",
"macros",
]