27 releases

Uses old Rust 2015

0.12.4 Aug 2, 2020
0.12.3 Jul 30, 2020
0.12.2 Feb 20, 2020
0.12.1 May 10, 2019
0.2.2 Jul 21, 2016
Download history 136086/week @ 2024-07-22 137167/week @ 2024-07-29 140653/week @ 2024-08-05 149668/week @ 2024-08-12 145467/week @ 2024-08-19 148658/week @ 2024-08-26 142904/week @ 2024-09-02 169821/week @ 2024-09-09 153968/week @ 2024-09-16 162919/week @ 2024-09-23 145457/week @ 2024-09-30 133516/week @ 2024-10-07 150573/week @ 2024-10-14 150162/week @ 2024-10-21 139883/week @ 2024-10-28 128033/week @ 2024-11-04

575,393 downloads per month
This crate has lost popularity

MIT/Apache

71KB
1K SLoC

error-chain - Consistent error handling for Rust

Build Status Latest Version License

error-chain makes it easy to take full advantage of Rust's error handling features without the overhead of maintaining boilerplate error types and conversions. It implements an opinionated strategy for defining your own error types, as well as conversions from others' error types.

Documentation (crates.io).

Documentation (master).

Quick start

If you just want to set up your new project with error-chain, follow the quickstart.rs template, and read this intro to error-chain.

Supported Rust version

Please view the beginning of the Travis configuration file to see the oldest supported Rust version.

Note that error-chain supports older versions of Rust when built with default-features = false.

License

MIT/Apache-2.0

Dependencies

~2.3–7.5MB
~67K SLoC