Is there a library for code generation that is easier than procedural macros?

⚓ Rust    📅 2026-02-21    👤 surdeus    👁️ 3      

surdeus

I am looking for something that can generate code like proc macro but is user friendly. I've tried proc macro and found them difficult. For example, there is library that can generate code using declarative macros that are easier to write than pure declarative macro syntax here : crabtime - Rust. But unfortunately, it often lack support for derive and attribute macros. I am aware of proc macro2, syn, and quote and have tried them, but the development process is very complex and hard. Is there a library for generating derive and attribute macros, or a code generation tool that yields the same results but is easier to use?

3 posts - 2 participants

Read full topic

🏷️ Rust_feed