Email me

Crates / Compare / once_cell vs heapless

Rust crates side by side · data Oct 24, 2026

once_cell vs heapless

Short answerBy steady daily use, once_cell is bigger: 3,785,180 real downloads a day against 576,658 for heapless (6.6x). 8,656 crates depend on once_cell and 1,162 on heapless. once_cell last shipped 7 months ago, heapless 6 months ago.

once_cell

Widely used

Widely used and steady.

8,656 crates depend on it; no release in the last 90 days, so its count is all steady use.

Single assignment cells and lazy values.

heapless

Widely used

Widely used and steady.

1,162 crates depend on it; no release in the last 90 days, so its count is all steady use.

`static` friendly data structures that don't require dynamic memory allocation

once_cellheapless · 100% = that crate's normal quiet day, so a spike to 300% is triple its usual traffic

Every number, side by side

Same window, same methodonce_cellheapless
Real downloads a day3,785,180576,658
Crates that depend on it8,6561,162
Last release1.21.4, 7 months ago0.9.3, 6 months ago
Trend vs the field-3%+3%
Release-window share0.0%0.0%
Downloads in the window336,233,85352,662,767
All-time downloads1,416,715,677164,209,855
Versions published6756
LicenseMIT OR Apache-2.0MIT OR Apache-2.0
MSRV1.651.87
First publishedAug 2, 2018Apr 27, 2017

Which to pick

  • Downloads tell you what is common, not what fits. Each crate's own description above says what it is for; when the jobs differ, pick by the job.
  • When both fit, prefer the one more crates depend on (once_cell, 8,656 dependents): more eyes, more answered questions, and you may already have it in your tree.
  • Check the release dates against your own pace: once_cell 7 months ago, heapless 6 months ago.

Also in this space

Method

Real downloads = the median day with no release that day or the day before, from the crates.io API (Jul 27, 2026 to Oct 23, 2026). Raw crates.io counts include CI and bots and run high (why); the method is from our 90-day study.

Up next

Another comparison: Same method, same window. Widely used and steady vs foundational and steady.once_cell vs lazy_staticRead 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