mokuya
is a utility crate that provides adapters and helpers for writing Rust procedural macros. It simplifies common tasks when working with syn
, quote
, and proc_macro2
, and is designed to help authors build robust and reusable macro code.
- Utilities for extracting types, arguments, and attributes from
syn
. - Simple extension utilities for
TokenStream
. - Reusable and ergonomic error handling structure.
- Great for use in derive, attribute, or function-like procedural macros.
- Zero dependencies outside the core macro ecosystem.
Add this to your Cargo.toml
:
cargo add mokuya