error-iter
Use Error::sources
on stable Rust.
Supports Rust 1.56.0 and higher.
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.
cargo run --example simple