1 unstable release

new 0.1.0 Mar 5, 2025

#507 in Procedural macros

Download history 113/week @ 2025-03-01

113 downloads per month

MIT/Apache

27KB
499 lines

proc_nuhound

A library of Rust proc macros for nuhound error tracing.

Rust programmers often find the question mark operator invaluable in extracting values from Result and Option and immediately returning to the calling context in the case of an Err or None. This library provides a trio of proc macros that simplify the use of the nuhound type in error tracing.

With the disclose feature enabled, the error messages contain the line number and column number of the source file that originated the error. This functionality is provided by the convert!, examine! and custom! macros. These macros are designed to help with the simplification of error handling in a concise consistent Rust style in line with the nuhound paradigm.

These macros require nuhound v0.2 or later.

For a fuller explantion of usage please refer to nuhound v0.2 onwards.

License

This project is licensed under either:

No runtime deps