Lightweight context layers for stdandard library errors

1 unstable release

0.1.0 Sep 28, 2019

#104 in #error

Download history 958/week @ 2022-09-18 830/week @ 2022-09-25 1093/week @ 2022-10-02 1129/week @ 2022-10-09 889/week @ 2022-10-16 621/week @ 2022-10-23 852/week @ 2022-10-30 791/week @ 2022-11-06 697/week @ 2022-11-13 763/week @ 2022-11-20 888/week @ 2022-11-27 679/week @ 2022-12-04 642/week @ 2022-12-11 604/week @ 2022-12-18 516/week @ 2022-12-25 502/week @ 2023-01-01

2,336 downloads per month
Used in 8 crates (6 directly)

Apache-2.0 OR MIT

303 lines


Travis Build Status

This library allows one to attach context (layers) onto errors with minimal amount of work and analyze such multi-layer errors.

The API and working is heavily influenced by the failure crate. However, only the part that works with contexts/layers is present in here (for generating error types, see the err-derive, which implements the derive part of functionality). Furthermore, this library works with std errors.

Read the documentation before using.


Licensed under either of

at your option.


Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.


~12K SLoC