Crates.io | errify-macros |
lib.rs | errify-macros |
version | 0.3.0 |
source | src |
created_at | 2024-05-12 10:38:13.111158 |
updated_at | 2024-05-16 21:42:41.40414 |
description | Function error context provider (macros) |
homepage | |
repository | https://github.com/LazyMechanic/errify |
max_upload_size | |
id | 1237349 |
size | 26,514 |
This library provides the macros that provide error context for the entire function.
[dependencies]
errify = "0.3"
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