2 releases
0.1.1 | Mar 24, 2025 |
---|---|
0.1.0 | Jan 20, 2025 |
#586 in Procedural macros
127 downloads per month
10KB
214 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,
}
foxerror
yet another proc macro for deriving Error on enums
Dependencies
~210–650KB
~15K SLoC