errify-macros

Crates.ioerrify-macros
lib.rserrify-macros
version0.3.0
sourcesrc
created_at2024-05-12 10:38:13.111158
updated_at2024-05-16 21:42:41.40414
descriptionFunction error context provider (macros)
homepage
repositoryhttps://github.com/LazyMechanic/errify
max_upload_size
id1237349
size26,514
Artem (LazyMechanic)

documentation

https://docs.rs/errify

README

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.
Commit count: 47

cargo fmt