Skip to content

Releases: dtolnay/anyhow

1.0.49

27 Nov 00:42
1.0.49
a5a98e0
Compare
Choose a tag to compare
  • Add a function anyhow::Ok(v) equivalent to Ok::<_, anyhow::Error>(v) (#192)

1.0.48

22 Nov 17:44
1.0.48
f4269d5
Compare
Choose a tag to compare
  • Include a Debug rendering of lhs and rhs in ensure! 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

22 Nov 17:42
1.0.47
3a183b9
Compare
Choose a tag to compare
  • Fixes for implicit format args support

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)