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

#821 in Rust patterns

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

~0.4–1MB
~21K SLoC