mirror of
https://github.com/kamranahmedse/developer-roadmap.git
synced 2026-10-29 17:44:52 +08:00
* refactor: clean to roadmap content * refactor: move shared helpers into scripts/lib
605 B
605 B
Procedural Macros and Custom Derive
Procedural macros operate on token streams at compile time, generating new code. Three types exist: custom derive (for #[derive(MyTrait)]), attribute-like (#[my_attr]), and function-like (my_macro!()). More powerful than declarative macros but require separate crates with special configuration.
Visit the following resources to learn more: