error-iter

Crates.ioerror-iter
lib.rserror-iter
version0.4.1
sourcesrc
created_at2019-11-03 22:42:00.820813
updated_at2023-03-19 03:02:46.381264
descriptionError::sources on stable Rust
homepage
repositoryhttps://github.com/parasyte/error-iter
max_upload_size
id177846
size12,070
Jay Oster (parasyte)

documentation

README

error-iter

Crates.io Documentation GitHub actions GitHub activity GitHub Sponsors unsafe forbidden

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

Commit count: 22

cargo fmt