Email me

Crates / phf_codegen / Alternatives

Rust crate alternatives · data Oct 24, 2026

Alternatives to phf_codegen

Short answerThe closest alternatives to phf_codegen on crates.io data are hashbrown (8.9M real downloads a day), indexmap (4.9M real downloads a day), smallvec (3.9M real downloads a day). Of the 8 we list, the most used is hashbrown, and 8 shipped a release in the last year. phf_codegen itself gets 1,094,890 a day with 206 dependents.

Every alternative we found

AlternativeReal downloads a dayvs phf_codegenDependentsLast releaseWhy it is listed
hashbrown Widely used8,927,9608.15x2,4686mocategory Data structurescompare
indexmap Widely used4,883,1224.46x6,42249dcategory Data structurescompare
smallvec Widely used3,868,5893.53x4,3451dcategory Data structurescompare
bytes Foundational3,424,1403.13x17,6564mocategory Data structurescompare
either Widely used3,049,6032.79x1,48818dcategory Data structurescompare
slab Established3,013,5682.75x6199mocategory Data structurescompare
equivalent Pulled in2,919,2522.67x4411dcategory Data structurescompare
generic-array Established2,819,2192.57x5422mocategory Data structurescompare

How to choose

  • Same job, not the same API. Each line is listed because it shares a crates.io category or keyword with phf_codegen; 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 phf_codegen: 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 phf_codegen, 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. 8,927,960 real downloads a day.hashbrownRust crate. A Rust port of Google's SwissTable hash map. Real use: 8.9M downloads a day on quiet days; 2,468 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