1 unstable release
0.1.0 | Jan 20, 2025 |
---|
#646 in Procedural macros
121 downloads per month
9KB
184 lines
derive macro for implementing Display and Error on enums
#[derive(Debug, foxerror::FoxError)]
enum Error {
NamedFields { a: i32, b: i32 },
#[err(msg = "a custom message")]
WithMessage(String),
/// or the first line of the doc comment
DocWorksToo,
}
Dependencies
~250–710KB
~17K SLoC