5 unstable releases

0.3.0 May 16, 2024
0.2.2 May 13, 2024
0.2.1 May 13, 2024
0.2.0 May 13, 2024
0.1.0 May 12, 2024

#1570 in Rust patterns

Download history 5/week @ 2024-07-24 47/week @ 2024-07-31 41/week @ 2024-08-07 7/week @ 2024-08-14 4/week @ 2024-08-21 9/week @ 2024-08-28 7/week @ 2024-09-18 20/week @ 2024-09-25 4/week @ 2024-10-02 18/week @ 2024-10-09 44/week @ 2024-10-16 46/week @ 2024-10-23 48/week @ 2024-10-30 44/week @ 2024-11-06

183 downloads per month

MIT/Apache

13KB
124 lines

errify

crates.io docs.rs build

This library provides the macros that provide error context for the entire function.

[dependencies]
errify = "0.3"

Usage example

use errify::errify;

#[errify("Custom error context, with argument capturing {arg} = {}", arg)]
fn func(arg: i32) -> Result<(), anyhow::Error> {
    // ...
}

For more information, see the documentation

License

Licensed under either of Apache License, Version 2.0 or MIT license at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in this crate by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Dependencies

~270–790KB
~18K SLoC