failure
Experimental error handling abstraction.
0.1.8
48M downloads/mo
#1255 most downloaded on crates.io
rust-lang-nursery/failure
What this package is like to depend on
Last release 6 years ago
no release in 18 months
Release timing varies
gaps range from 2 weeks to 10 months
Most releases are documented
notes for 7 of 10 stable releases
Nothing withdrawn
no release was ever pulled
9 years old
10 releases · first in 2017
0 releases in the last 12 months
see the full history below
Release timeline
10 releases · Oct 2017 to May 2020Releases
latest 10-
0.1.802 May 2020Nothing published for this version
-
0.1.705 Mar 2020Nothing published for this version
-
0.1.611 Oct 2019Release notes
Open source →- Update
syn,quote, andproc_macro2dependencies to 1.0. - Bump MSRV to 1.31.0.
- Update
-
0.1.502 Jan 2019Release notes
Open source →- Resolve a regression with error conversions (#290)
- Added
name()toFailandError
-
0.1.429 Dec 2018Release notes
Open source →- 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.
-
0.1.320 Oct 2018Release notes
Open source →- Added
Context::map - Fixed a memory leak for older rust versions on error downcast
- Added
-
0.1.201 Aug 2018Release notes
Open source →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.
- Fix
-
0.1.130 Nov 2017Release notes
Open source →- 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).
- Add a
-
0.1.016 Nov 2017 -
0.0.108 Oct 2017Nothing published for this version