2 stable releases

✓ Uses Rust 2018 edition

2.0.1 Apr 13, 2019
2.0.0 Apr 8, 2019

#95 in Rust patterns

Download history 92/week @ 2019-04-06 84/week @ 2019-04-13 2/week @ 2019-04-20 5/week @ 2019-04-27 4/week @ 2019-05-04 14/week @ 2019-05-11 19/week @ 2019-05-18 69/week @ 2019-05-25 37/week @ 2019-06-01 10/week @ 2019-06-08 12/week @ 2019-06-15 46/week @ 2019-06-22 77/week @ 2019-06-29

108 downloads per month
Used in 1 crate

MIT/Apache

51KB
1K SLoC

Quick Error 2

This is https://github.com/tailhook/quick-error but upgraded to Rust 2018 and support for Error::source(). It has been published as quick-error2. You can upgrade by updating your Cargo.toml to

Why?

Because it seems like @tailhook is not currently maintaining quick-error. Perhaps one day https://github.com/tailhook/quick-error/pull/45 will be merged 🤷‍♂.

Quick Error

Status:production-ready
Documentation:http://tailhook.github.io/quick-error/

A macro which makes error types pleasant to write.

Features:

  • Define enum type with arbitrary parameters
  • Concise notation of Display and Error traits
  • Full control of Display and Error trait implementation
  • Any number of From traits
  • Support for all enum-variants Unit, Tuple and Struct

Here is the comprehensive example:

License

Licensed under either of

at your option.

Contribution

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.

No runtime deps