Procedural macros are the primary way to do code generation in Rust. There aren't specific cargo plugins for writing proc macros, but they are often used within projects that might also have other build-related plugins.
Code Snippets/Templates
No single dominant crate or plugin. Often handled with IDE features or custom scripts.
Scaffolding/Project Generation
Tools like cargo new are built-in. Other project templates might be managed separately or integrated into build tools.
Cargo Generate⮳ is a developer tool to help you get up and running quickly with a new Rust project by leveraging a pre-existing git repository as a template.