1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
[]
= "error-forge"
# Stable API since 1.0.0: the public surface is frozen under SemVer
# for the 1.x line. See docs/STABILITY.md for the binding contract and
# docs/API-FREEZE-AUDIT.md for the surface manifest. The circuit
# breaker uses `std::sync::Mutex` (poisoning ignored) since 1.1.0, and
# jitter needs no dependency since 1.2.0.
= "1.2.0"
= "2021"
# MSRV. The crate uses `io::Error::other` (stabilised 1.74),
# `Mutex::new()` in const context (1.63 — fine), and Cargo lockfile
# format v4 (default since 1.78, can't be parsed by older
# toolchains). `1.81` is also the floor required by clippy's
# `incompatible_msrv` lint on the current source, and matches
# `mod-events` in this workspace for consistency. CI verifies on
# 1.81.0 in a dedicated MSRV job.
= "1.81"
= "README.md"
= "Apache-2.0"
= [
"James Gober <me@jamesgober.com>"
]
= "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."
= [
"error",
"error-handling",
"async",
"resilience",
"circuit-breaker"
]
= [
"rust-patterns",
"development-tools::debugging",
"asynchronous",
"development-tools"
]
= "https://docs.rs/error-forge"
= "https://github.com/jamesgober/error-forge"
= "https://github.com/jamesgober/error-forge"
# Configuration for docs.rs
[]
# Enable all features when building docs
= true
# Enable specific features for documentation
= ["derive", "serde", "console", "backtrace"]
# Set specific rustdoc flags
= ["--cfg", "docsrs"]
[]
# The only always-on dependency, and an in-house one. With default
# features off it is a dependency-free proc-macro crate that supplies
# the identifier pasting `define_errors!` needs (it replaced the
# third-party `pastey`, and before that `paste`). The `derive` feature
# below turns on its `#[derive(ModError)]`, which brings in `syn`,
# `quote` and `proc-macro2`.
= { = "1.2.0", = "./error-forge-derive", = false }
# Floors below are checked by the `minimal-versions` CI job: `serde`
# 1.0.157 is the first release whose derive builds alongside the
# `syn` 1 floor of `error-forge-derive`, `log` 0.4.4 the first whose
# macros resolve `log!` through `$crate`, and `tracing` 0.1.6 the first
# that accepts the `target:` plus field syntax used by the adapter.
= { = "1.0.157", = true, = ["derive"] }
= { = "0.4.4", = true }
= { = "0.1.6", = true }
= { = "0.1.74", = true }
[]
= []
= ["error-forge-derive"]
# Up to 1.0.2 `error-forge-derive` was an optional dependency and this
# was the feature Cargo created for it. It is kept, with the same
# meaning, so manifests that name it keep resolving and `derive` still
# implies it: it compiles the derive macro, and `derive` re-exports it.
= ["error-forge-derive/derive"]
= ["dep:serde"]
# `console`, `backtrace`, `registry`, `collector` and `context` gate
# nothing: the related APIs are always compiled in and no backtrace is
# captured automatically. They stay so existing manifests that enable
# them keep resolving (removing a feature is a breaking change).
= []
= []
# Turns ±20% jitter on by default for the exponential `RetryExecutor`
# and `RetryPolicy`. Since 1.2.0 jitter itself needs no dependency (an
# in-crate generator), so `ExponentialBackoff::with_jitter` works with
# or without this feature.
= []
= ["dep:log"]
= ["dep:tracing"]
= []
= []
= []
= ["dep:async-trait"]
[]
= ["error-forge-derive"]
[]
= "1.0"
# Compile-pass / compile-fail tests (`tests/ui_test.rs`). Needs a newer
# toolchain than the MSRV; the MSRV CI job resolves an older release
# and skips the UI test.
= "1.0.100"
= { = "1.52", = ["full", "test-util", "macros"] }