Crates.io | errify |
lib.rs | errify |
version | 0.3.0 |
source | src |
created_at | 2024-05-12 10:38:20.797908 |
updated_at | 2024-05-16 21:42:45.342743 |
description | Function error context provider |
homepage | |
repository | https://github.com/LazyMechanic/errify |
max_upload_size | |
id | 1237350 |
size | 35,251 |
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