Releases: dtolnay/anyhow
Releases · dtolnay/anyhow
1.0.53
- Retrigger docs.rs build to work around rustdoc regression (rust-lang/rust#92331)
1.0.52
1.0.51
1.0.50
1.0.49
1.0.48
-
Include a
Debug
rendering of lhs and rhs inensure!
messages (#193, #194, #195, #196, #197, #198)Example:
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)
1.0.47
1.0.46
-
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)