- Update
syn,quote, andproc_macro2dependencies to 1.0. - Bump MSRV to 1.31.0.
- Resolve a regression with error conversions (#290)
- Added
name()toFailandError
- Improved error reporting of the derive feature
- Resolved a potential internal ambiguity when using the backtrace feature that prevented backtrace from improving an upstream API.
- Changed the bounds on std error compat conversions through the From trait to take Sync and Send into account.
- Added
Context::map - Fixed a memory leak for older rust versions on error downcast
The original plan to release 1.0.0 was changed so that version 0.1.1 is released and a related RFC to fix the error trait is submitted. See README for details.
- Fix
failure_deriveto work with Rust 2018. - Add
#[fail(cause)]that works similarly with#[cause]. The new form is preferred. - Fix
"backtrace"feature to work without"std"feature. - Add
Compat::get_ref. - Add
Fallible. - Deprecate
Fail::causesand<dyn Fail>::causesin favor of newly added<dyn Fail>::iter_causes. - Deprecate
Fail::root_causeand<dyn Fail>::root_causein favor of newly added<dyn Fail>::find_root_cause. - Add
<dyn Fail>::iter_chain. - Implement
Box<Fail>: Fail. - Add
Error::from_boxed_compat. - Deprecate
Error::causein favor of newly addedError::as_fail. - Deprecate
Error::causesin favor of newly addedError::iter_chain. - Deprecate
Error::root_causein favor of newly addedError::find_root_cause. - Add
Error::iter_causes. - Implement
Error: AsRef<Fail>. - Fix
Debugimplementation ofSyncFailure.
- Add a
Causesiterator, which iterates over the causes of a failure. Can be accessed through theFail::causesorError::causesmethods. - Add the
bail!macro, which "throws" from the function. - Add the
ensure!macro, which is like an "assert" which throws instead of panicking. - The derive now supports a no_std mode.
- The derive is re-exported from
failureby default, so that users do not have to directly depend onfailure_derive. - Add a impl of
From<D> for Context<D>, allowing users to?theDtype to produce aContext<D>(for cases where there is no further underlying error).
- Initial version.