https://github.com/parasyte/error-iter
Error::sources on stable Rust
https://github.com/parasyte/error-iter
Last synced: 10 months ago
JSON representation
Error::sources on stable Rust
- Host: GitHub
- URL: https://github.com/parasyte/error-iter
- Owner: parasyte
- License: mit
- Created: 2019-11-03T22:28:56.000Z (about 6 years ago)
- Default Branch: main
- Last Pushed: 2023-07-10T05:54:05.000Z (over 2 years ago)
- Last Synced: 2024-05-02T01:22:45.055Z (over 1 year ago)
- Language: Rust
- Homepage: https://docs.rs/error-iter
- Size: 20.5 KB
- Stars: 7
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# `error-iter`
[](https://crates.io/crates/error-iter "Crates.io version")
[](https://docs.rs/error-iter "Documentation")
[](https://github.com/parasyte/error-iter/actions "CI")
[](https://github.com/parasyte/error-iter/commits "Commit activity")
[](https://github.com/sponsors/parasyte "Sponsors")
[](https://github.com/rust-secure-code/safety-dance/)
Use [`Error::sources`](https://doc.rust-lang.org/nightly/std/error/trait.Error.html#method.sources) on stable Rust.
## MSRV
Supports Rust 1.56.0 and higher.
## What is this?
`Error::sources` is incredibly useful for providing error context in Rust applications. For motivation, see [RFC 2504](https://github.com/rust-lang/rfcs/blob/master/text/2504-fix-error.md). This iterator is available in nightly compilers with [#58520](https://github.com/rust-lang/rust/issues/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`