#macro #failure #helper

xfailure

Additional helper macros for failure

1 unstable release

Uses old Rust 2015

0.1.0 Dec 31, 2017

#63 in #failure

Download history 12/week @ 2024-01-08 13/week @ 2024-01-15 27/week @ 2024-01-22 9/week @ 2024-02-05 20/week @ 2024-02-12 24/week @ 2024-02-19 44/week @ 2024-02-26 49/week @ 2024-03-04 39/week @ 2024-03-11 28/week @ 2024-03-18 37/week @ 2024-03-25 72/week @ 2024-04-01 17/week @ 2024-04-08 22/week @ 2024-04-15 31/week @ 2024-04-22

147 downloads per month
Used in 8 crates (via sightglass)

ISC license

2KB

xfailure

The bail! macro from the failure crate doesn't behave in an intuitive way, and returns a string instead of the actual error.

This situation may change in the future. Meanwhile, this trivial crate provides an xbail! macro that acts like error_chain's bail! macro.

xfailure is also available on crates.io.

No runtime deps