[package]
edition = "2021"
name = "error-forge"
version = "0.9.7"
authors = ["James Gober <me@jamesgober.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A comprehensive Rust error management framework with async support, error recovery patterns, and resilience features for building robust, fault-tolerant applications with rich error handling, formatting, and tracing capabilities."
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"]
thread-safety = ["dep:once_cell"]
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.atty]
version = "0.2"
[dependencies.error-forge-derive]
version = "0.9.7"
optional = true
[dependencies.log]
version = "0.4"
optional = true
[dependencies.once_cell]
version = "1.8"
optional = true
[dependencies.paste]
version = "1.0"
[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",
]