Skip to content

Releases: dtolnay/anyhow

1.0.46

08 Nov 22:36
1.0.46
f75fe39
Compare
Choose a tag to compare
  • 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)

1.0.45

02 Nov 20:57
1.0.45
33ab02c
Compare
Choose a tag to compare
  • Fix non-compilable macro expansion if downstream crate calls anyhow!, ensure!, or bail! with format args and is built with #![no_std] or #![no_implicit_prelude] (#177)

1.0.44

12 Sep 19:20
1.0.44
6c97c59
Compare
Choose a tag to compare
  • Mark error constructors cold to help LLVM optimize code paths not leading to error (#166, thanks @stepancheg)

1.0.43

14 Aug 12:40
1.0.43
39899cc
Compare
Choose a tag to compare
  • Take -Zallow-features restrictions from Cargo configuration file into account on sufficiently new versions of nightly Cargo (#157, thanks @jonhoo)

1.0.42

09 Jul 19:48
1.0.42
ce33cac
Compare
Choose a tag to compare
  • Enable Android's automated tooling to pull in test coverage improvements

1.0.41

10 Jun 16:53
1.0.41
b4f670d
Compare
Choose a tag to compare
  • Disallow incompatible old versions of backtrace crate (#155, thanks @jfirebaugh)

1.0.40

26 Mar 17:31
1.0.40
704622f
Compare
Choose a tag to compare
  • Reduce memory footprint of errors on Rust versions 1.51+ (#145)

1.0.39

20 Mar 03:24
1.0.39
8599c7b
Compare
Choose a tag to compare
  • Add an opt-in implementation of Error::backtrace on stable compilers based on the backtrace crate (#143)

    [dependencies]
    anyhow = { version = "1.0", features = ["backtrace"] }

1.0.38

11 Jan 01:30
1.0.38
6a16413
Compare
Choose a tag to compare
  • Support using anyhow::Error in code executed by Miri (#134, thanks @thomcc)

1.0.37

28 Dec 19:27
1.0.37
d1ba145
Compare
Choose a tag to compare
  • Improve compiler diagnostic on calling macro with a temporary value (#133)