rust-macros
Installation
SKILL.md
Rust Macros
Comprehensive guide based on The Little Book of Rust Macros, the Rust Reference, and procedural macro workshop materials.
When to Use This Skill
- Writing
macro_rules!declarative macros - Creating derive macros (
#[derive(MyTrait)]) - Creating attribute macros (
#[my_attr]) - Creating function-like proc macros (
my_macro!(...)) - Debugging macro expansion issues
- Understanding hygiene, metavariables, and fragment specifiers