Skip to content

Releases: dtolnay/anyhow

1.0.53

22 Jan 01:12
1.0.53
7290028
Compare
Choose a tag to compare

1.0.52

23 Dec 19:05
1.0.52
f871e2f
Compare
Choose a tag to compare
  • Reduce overhead of backtrace capture in the case that backtraces are not enabled (#212)

1.0.51

29 Nov 16:15
1.0.51
871be23
Compare
Choose a tag to compare
  • Show doc for Ok fn

1.0.50

28 Nov 19:27
1.0.50
7f5c9c4
Compare
Choose a tag to compare

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)