5 releases (3 breaking)
0.4.1 | Mar 19, 2023 |
---|---|
0.4.0 | Feb 18, 2023 |
0.3.0 | Oct 2, 2022 |
0.2.0 | Nov 23, 2019 |
0.1.0 | Nov 3, 2019 |
#1121 in Rust patterns
2,118 downloads per month
Used in 9 crates
7KB
50 lines
error-iter
Use Error::sources
on stable Rust.
MSRV
Supports Rust 1.37.0 and higher.
Compiles on Rust 1.31.0, but does not return the tail source. (Tests fail on anything less than 1.37.0.)
What is this?
Error::sources
is incredibly useful for providing error context in Rust applications. For motivation, see RFC 2504. This iterator is available in nightly compilers with #58520 tracking stabilization.
This crate does not attempt to be 100% compatible with the stabilization effort, but does want to provide very similar functionality to stable Rust.
Show me
cargo run --example simple