Email me

Crates / once_cell / Alternatives

Rust crate alternatives · data Oct 24, 2026

Alternatives to once_cell

Short answerThe closest alternatives to once_cell on crates.io data are lazy_static (2.4M real downloads a day), static_assertions (1.4M real downloads a day), zerovec-derive (2.6M real downloads a day). Of the 8 we list, the most used is zerovec-derive, and 7 shipped a release in the last year. once_cell itself gets 3,785,180 a day with 8,656 dependents.

Every alternative we found

AlternativeReal downloads a dayvs once_cellDependentsLast releaseWhy it is listed
lazy_static Foundational2,449,9970.65x10,95323dcategory Memory management, category Rust patterns, keyword "lazy", keyword "static"side by side
static_assertions Widely used1,442,2650.38x1,6887.0ycategory Rust patterns, keyword "static"side by side
zerovec-derive Pulled in2,561,3900.68x62dcategory Memory management, category Rust patternscompare
zerovec Pulled in2,516,8030.66x602dcategory Memory management, category Rust patternscompare
bumpalo Established1,968,7160.52x5465mocategory Memory management, category Rust patternscompare
id-arena Pulled in640,3060.17x659mocategory Memory management, category Rust patternscompare
jiff-static Pulled in646,3370.17x118dkeyword "static"compare
heapless Widely used576,6580.15x1,1626mokeyword "static"side by side

How to choose

  • Same job, not the same API. Each line is listed because it shares a crates.io category or keyword with once_cell; 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 once_cell: 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 once_cell, 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: Foundational and steady. 2,449,997 real downloads a day.lazy_staticRust crate. A macro for declaring lazily evaluated statics in Rust. Real use: 2.4M downloads a day on quiet days; 10,953 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