NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
crates.io, #67 most downloaded on crates.io
Flexible concrete Error type built on std::error::Error
Latest stable
1.0.104
Last release 4 months ago
18 Jul 2026
Release timing varies
gaps range from 2 weeks to 5 months
Most releases are documented
notes for 51 of the last 60 stable releases
3 versions withdrawn
withdrawn after publishing
7 years old
106 releases · first in 2019
Drag across the ruler to compare, or tap a release to open it.
Update syn dev-dependency to version 3
syn dev-dependency to version 3Fix Stacked Borrows violation (UB) in Error::downcast_mut ( #451 , #452 )
Your coding agent can read these notes before it upgrades. Set up the MCP server →
Add #[inline] to anyhow::Ok helper ( #437 , thanks @Ibitier )
Teach clippy to lint formatting arguments in bail! , ensure! , anyhow!
bail!, ensure!, anyhow! (#426)Allow build-script cleanup failure with NFSv3 output directory to be non-fatal
Add self.into_boxed_dyn_error() and self.reallocate_into_boxed_dyn_error_without_backtrace() methods for anyhow::Error
self.into_boxed_dyn_error() and self.reallocate_into_boxed_dyn_error_without_backtrace() methods for anyhow::Error (#415)Documentation improvements
Documentation improvements
Add Error::from_boxed ( #401 , #402 )
Error::from_boxed (#401, #402)Nothing published for this version
Update dev-dependencies to thiserror v2
thiserror v2Support Rust 1.82's &raw const and &raw mut syntax inside ensure!
&raw const and &raw mut syntax inside ensure! (#390)Ensure OUT_DIR is left with deterministic contents after build script execution
Nothing published for this version
Make anyhow::Error's UnwindSafe and RefUnwindSafe impl consistently available between versions of Rust newer and older than 1.72
UnwindSafe and RefUnwindSafe impl consistently available between versions of Rust newer and older than 1.72 (#386)Nothing published for this version
Support more APIs, including Error::new and Error::chain, in no-std mode on Rust 1.81+
Error::new and Error::chain, in no-std mode on Rust 1.81+ (#383)Fix parse error in ensure! with non-literal after minus sign
ensure! with non-literal after minus sign (#373)Improve ensure! macro's rules to unblock some rustc pretty-printer improvements (#368, #371)
ensure! macro's rules to unblock some rustc pretty-printer improvements (#368, #371)Disallow calling ensure! through a Not impl for a type that is not bool
ensure! through a Not impl for a type that is not bool (#367)Integrate compile-time checking of cfgs
Nothing published for this version
Make backtrace support available when using -Dwarnings
Fix unused_imports warnings when compiled by rustc 1.78
Work around improperly cached build script result by sccache
Reduce spurious rebuilds under RustRover IDE when using a nightly toolchain
Make anyhow::Error::backtrace available on stable Rust compilers 1.65+ (#293, thanks @LukasKalbertodt)
anyhow::Error::backtrace available on stable Rust compilers 1.65+ (#293, thanks @LukasKalbertodt)Opt in to unsafe_op_in_unsafe_fn lint
unsafe_op_in_unsafe_fn lint (#329)Partially work around rust-analyzer bug
Add bootstrap workaround to allow rustc to depend on anyhow (#320, thanks @RalfJung)
Update backtrace support to nightly's new Error::provide API
Nothing published for this version
Nothing published for this version
- Update syn dependency to 2.x
Nothing published for this version
Opt out of -Zrustdoc-scrape-examples on docs.rs for now
-Zrustdoc-scrape-examples on docs.rs for nowImprove the backtrace captured when context() is used on an Option
context() is used on an Option (#280)Reduce unhelpful backtrace frames in backtraces captured during a context call
context call (#279)impl Provider for anyhow::Error
Correctly propagate Backtrace when using #[source] anyhow::Error with thiserror crate
#[source] anyhow::Error with thiserror crate (#231)Expose backtraces via the new "generic member access" API on the Error trait
Fix extra rebuilding when interleaving command-line cargo invocations with IDE builds
cargo invocations with IDE builds (#261)Work around rust-analyzer builds poisoning all subsequent command-line cargo builds
Propagate --target to rustc invocation when deciding about backtrace support (#249, thanks @RalfJung)
--target to rustc invocation when deciding about backtrace support (#249, thanks @RalfJung)Update crates.io metadata to include no-std category
no-std categoryFix some broken links in documentation
Remove a log4rs-specific workaround from bail! macro implementation
log4rs-specific workaround from bail! macro implementationAdd must_use warning when an Error created by anyhow! is not used, perhaps because the programmer meant to write bail! instead
must_use warning when an Error created by anyhow! is not used, perhaps because the programmer meant to write bail! instead (#229)Nothing published for this version
Construct more helpful error message from ensure! when the expression involves a negative literal const generic as the first generic argument of a met
ensure! when the expression involves a negative literal const generic as the first generic argument of a method call (#224)Retrigger docs.rs build to work around rustdoc regression
Reduce overhead of backtrace capture in the case that backtraces are not enabled
Nothing published for this version
Recognize more types of expressions in ensure! macro (#199, #200, #202, #203, #204, #205, #206)
ensure! macro (#199, #200, #202, #203, #204, #205, #206)Add a function anyhow::Ok(v) equivalent to Ok::<_, anyhow::Error>(v)
anyhow::Ok(v) equivalent to Ok::<_, anyhow::Error>(v) (#192)Include a Debug rendering of lhs and rhs in ensure! messages (#193, #194, #195, #196, #197, #198)
Include a Debug rendering of lhs and rhs in ensure! messages (#193, #194, #195, #196, #197, #198)
ensure!(flags.len() <= 40);
ensure!(kind == Kind::File);
Before:
Condition failed: `flags.len() <= 40`
Condition failed: `kind == Kind::File`
After:
Condition failed: `flags.len() <= 40` (99 vs 40)
Condition failed: `kind == Kind::File` (Symlink vs File)
Fixes for implicit format args support
Support for implicit format args to match println and other std macros
Support for implicit format args to match println and other std macros (https://rust-lang.github.io/rfcs/2795-format-args-implicit-identifiers.html)
let var = ...;
let error = anyhow!("interpolate {var}"); // equivalent to anyhow!("interpolate {var}", var=var)
Detect missing fmt arguments at compile time: anyhow!("{} not found") (#55)
Reduce occurrence of "future cannot be shared between threads safely" in async code using anyhow macros (#186)
Fix non-compilable macro expansion if downstream crate calls anyhow!, ensure!, or bail! with format args and is built with #![no_std] or #![no_implici
anyhow!, ensure!, or bail! with format args and is built with #![no_std] or #![no_implicit_prelude] (#177)One column per quarter.