Rust Macros

Design, name, implement, debug, test, and review Rust declarative and procedural macros, including macro_rules matchers and repetition, hygiene, $crate paths, derive, attribute and function-like macros, proc-macro crate naming, syn parsing, quote generation, diagnostics, cargo-expand, doctests, and trybuild. Use when users need compile-time code generation, a Rust DSL, or guidance choosing -derive versus -macros; keep ordinary trait, generic, or handwritten APIs outside macros unless generation has a clear maintenance benefit.

full-stack-skills 6a3a48a 6 files · 10.5 KB Updated

File contents

full-stack-skills/rust-skills/tree/main/skills/rust-macros commit 6a3a48a3ed

Frequently asked questions

npx skillmds@latest add full-stack-skills/rust-macros