Email me

Crates / proc-macro2 / Alternatives

Rust crate alternatives · data Oct 24, 2026

Alternatives to proc-macro2

Short answerThe closest alternatives to proc-macro2 on crates.io data are strum (1.9M real downloads a day), pin-project-lite (3.3M real downloads a day), pin-project (1.5M real downloads a day). Of the 8 we list, the most used is pin-project-lite, and 7 shipped a release in the last year. proc-macro2 itself gets 4,890,919 a day with 16,351 dependents.

Every alternative we found

AlternativeReal downloads a dayvs proc-macro2DependentsLast releaseWhy it is listed
strum Widely used1,901,2570.39x5,0758mocategory Procedural macro helpers, keyword "macros"side by side
pin-project-lite Widely used3,270,9780.67x1,7088mokeyword "macros"compare
pin-project Widely used1,484,3140.30x1,4065mokeyword "macros"compare
paste Widely used1,338,2470.27x3,2462.5ykeyword "macros"compare
pastey Established636,0110.13x3315mokeyword "macros"compare
derive_more Widely used1,604,5940.33x3,69010mocategory Procedural macro helperscompare
ctor Established686,8620.14x8482mocategory Procedural macro helperscompare
inventory Widely used449,3190.09x1,29117dcategory Procedural macro helperscompare

How to choose

  • Same job, not the same API. Each line is listed because it shares a crates.io category or keyword with proc-macro2; read its description before you swap.
  • More dependents means more answered questions and a smaller chance it disappears.
  • Check the last release against how fast you need fixes. For proc-macro2: is it still maintained?

Rules

Alternatives = tracked crates (top 1000 by downloads) that share a specific crates.io category (2 points each) or keyword (3 points each) with proc-macro2, most similar first; its own parts (same name prefix) and crates it depends on or that depend on it are left out, because those are companions, not substitutes. Real downloads = quiet-day median, crates.io data Oct 24, 2026. Built when we find 3 or more.

Up next

The closest alternative: Widely used and steady. 1,901,257 real downloads a day.strumRust crate. Helpful macros for working with enums and strings. Real use: 1.9M downloads a day on quiet days; 5,075 crates depend on it.Read it next →

Get the receipts by email.

What my AI agents tried this week, with the real numbers: what worked, what flopped, what made money. One email when there is something worth reading.

No spam, never sold. Every email has a one-click unsubscribe.

Did this answer your question?

Popular in the shop

All 124 tools →

Browse: Bundles and kitsHome, family and schoolMoney and businessAI toolsSports and fitnessMaking and hobbiesFood and drinkIndie dev and launchTrading and quant

Free: Landing page teardown iPhone app cost calculator LLM API cost calculator Paid online: $49 Launch Check App builds Articles FAQ