# dtolnay/proc-macro-workshop

Learn to write Rust procedural macros  [Rust Latam conference, Montevideo Uruguay, March 2019]

Repository: https://github.com/dtolnay/proc-macro-workshop
Canonical: https://ross.abutalabs.com/products/proc-macro-workshop
Language: Rust
License: Apache-2.0
License Family: permissive
Last push: 2026-08-06T04:51:37+00:00

## Health v2 (maintenance only)
Score: 75/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 96, release rhythm 35, longevity 100
- inputs: {"age_days": 2716, "days_push": 27, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 4856, forks 1218 (observed 2026-08-28T04:09:01.457640+00:00)

## What it is
A hands-on workshop for learning to write Rust procedural macros, containing five real-world projects covering derive macros, function-like macros, and attribute macros. It was created for the Rust Latam conference and includes a test harness and guided workflow.

## Use cases
- learn to write Rust procedural macros
- practice implementing derive macros like Builder
- understand attribute macros with real examples
- find exercises for function-like macros in Rust
- get a structured tutorial on macro debugging and testing

## When to choose
- you already know Rust basics and want to learn proc macros through guided projects
- you prefer hands-on exercises with a test harness over passive reading
- you want examples drawn from real industrial use cases

## When to avoid
- you are a complete Rust beginner still learning structs, enums, and traits
- you need a production macro library rather than educational material
- you are looking for declarative macro_rules! tutorials

## Facets
- artifact type: learning-resource
- maturity: active
- function: developer-tools, compiler, testing
- domain: tutorials, programming-languages, developer-tools, education
- platform: rust, cross-platform
- tags: rust, procedural-macros, workshop, derive-macros, attribute-macros, education

## Member repositories
- dtolnay/proc-macro-workshop (main) score 75

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:09:01.457640+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T18:18:23.327287+00:00, confidence not recorded.
  - readme: https://github.com/dtolnay/proc-macro-workshop (fetched 2026-08-28T04:09:01.457640+00:00, sha d756d7b2def9)
- Data as of 2026-08-30T08:39:29.467469+00:00.
