#anyhow #error-context #context #error #eyre

macro errify-macros

Function error context provider (macros)

4 releases (2 breaking)

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

#16 in #eyre

Download history 14/week @ 2024-07-25 32/week @ 2024-08-01 32/week @ 2024-08-08 9/week @ 2024-08-15 8/week @ 2024-08-22 11/week @ 2024-08-29 20/week @ 2024-09-19 14/week @ 2024-09-26 6/week @ 2024-10-03 29/week @ 2024-10-10 31/week @ 2024-10-17 48/week @ 2024-10-24 56/week @ 2024-10-31 39/week @ 2024-11-07

188 downloads per month
Used in errify

MIT/Apache

15KB
307 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

~240–680KB
~16K SLoC