
Generics
Writing a Derive Macro in Rust With Syn and Quote Explained
Build a custom derive from scratch with syn, quote and proc-macro2: parse the struct, generate an impl, report errors with spans and test the expansion.
3 min read
Tag
1 post

Build a custom derive from scratch with syn, quote and proc-macro2: parse the struct, generate an impl, report errors with spans and test the expansion.