| Crates.io | error-iter |
| lib.rs | error-iter |
| version | 0.4.1 |
| created_at | 2019-11-03 22:42:00.820813+00 |
| updated_at | 2023-03-19 03:02:46.381264+00 |
| description | Error::sources on stable Rust |
| homepage | |
| repository | https://github.com/parasyte/error-iter |
| max_upload_size | |
| id | 177846 |
| size | 12,070 |
error-iterUse Error::sources on stable Rust.
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.)
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