This is a workshop/repository by the Rust developer David Tolnay (dtolnay) intended to teach how to write Rust procedural macros (derive macros, function-like macros, attribute macros). The repo contains multiple toy/realistic macro projects drawn from real use-cases: e.g., derive(Builder), derive(CustomDebug), seq!, #[sorted], #[bitfield]. The README indicates the focus is on learning: parsing token streams, generating code, handling generics, attribute arguments, etc. It has test harness and workflow guidance. Because procedural macros are quite subtle in Rust, this workshop is a strong resource for anyone wanting to go from beginner to intermediate/advanced macro writing.

Features

  • Multiple example macro projects (derive, attribute, function-like) to learn from
  • Guided workflow and test harness for macro development
  • Demonstrates parsing of token streams and code generation techniques
  • Covers real-world features like builder pattern generation, bit-fields, attribute macros
  • Explanatory material (suggested prerequisites, debugging tips) for learners
  • Open-source and educational resource aimed at macro authors

Project Samples

Project Activity

See All Activity >

Categories

Libraries

License

Apache License V2.0

Follow Rust Latam

Rust Latam Web Site

Other Useful Business Software
Stay in Flow. Let Zenflow Handle the Heavy Lifting. Icon
Stay in Flow. Let Zenflow Handle the Heavy Lifting.

Your AI engineering control center. Zenflow turns specs into shipped features using parallel agents and multi-repo intelligence.

Zenflow is your engineering control center, turning specs into shipped features. Parallel agents handle coding, testing, and refactoring with real repo context. Multi-agent workflows remove bottlenecks and automate routine work so developers stay focused and in flow.
Try free now
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Rust Latam!

Additional Project Details

Programming Language

Rust

Related Categories

Rust Libraries

Registered

2025-11-14