failure - a new error management story

failure is designed to make it easier to manage errors in Rust. It is
intended to replace error management based on std::error::Error with a new
system based on lessons learned over the past several years, including those
learned from experience with quick-error and error-chain.

failure provides two core components:

Fail: A new trait for custom error types.

Error: A struct which any type that implements Fail can be cast into.

Evolution

Failure is currently evolving as a library. First of all there is work going
on in Rust itself to fix the error trait
secondarily the original plan for Failure towards 1.0 is unlikely to happen
in the current form.

As such the original master branch towards 1.0 of failure was removed and
master now represents the future iteration steps of 0.1 until it's clear
what happens in the stdlib.

Requirements

Both failure and failure_derive are intended to compile on all stable versions
of Rust newer than 1.18.0, as well as the latest beta and the latest nightly.
If either crate fails to compile on any version newer than 1.18.0, please open
an issue.

failure is no_std compatible, though some aspects of it (primarily the
Error type) will not be available in no_std mode.

License

failure is licensed under the terms of the MIT License or the Apache License
2.0, at your choosing.

Code of Conduct

Contribution to the failure crate is organized under the terms of the
Contributor Covenant, the maintainer of failure, @withoutboats, promises to
intervene to uphold that code of conduct.