Crates / float-cmp / Alternatives
Rust crate alternatives · data Oct 24, 2026
Alternatives to float-cmp
Short answerThe closest alternatives to float-cmp on crates.io data are approx (534K real downloads a day), hashbrown (8.9M real downloads a day), indexmap (4.9M real downloads a day). Of the 8 we list, the most used is hashbrown, and 8 shipped a release in the last year. float-cmp itself gets 483,211 a day with 318 dependents.
Every alternative we found
| Alternative | Real downloads a day | vs float-cmp | Dependents | Last release | Why it is listed | |
|---|---|---|---|---|---|---|
| approx Widely used | 533,813 | 1.10x | 2,697 | 9mo | keyword "approximate", keyword "comparison" | side by side |
| hashbrown Widely used | 8,927,960 | 18.48x | 2,468 | 6mo | keyword "no_std" | compare |
| indexmap Widely used | 4,883,122 | 10.11x | 6,422 | 49d | keyword "no_std" | compare |
| base64 Foundational | 4,638,981 | 9.60x | 19,537 | 3mo | keyword "no_std" | compare |
| serde Foundational | 4,327,945 | 8.96x | 133,588 | 3mo | keyword "no_std" | compare |
| serde_derive Widely used | 4,161,400 | 8.61x | 6,497 | 3mo | keyword "no_std" | compare |
| smallvec Widely used | 3,868,589 | 8.01x | 4,345 | 1d | keyword "no_std" | compare |
| serde_core Established | 3,794,333 | 7.85x | 229 | 3mo | keyword "no_std" | compare |
How to choose
- Same job, not the same API. Each line is listed because it shares a crates.io category or keyword with float-cmp; 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 float-cmp: 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 float-cmp, 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. 533,813 real downloads a day.approxRust crate. Approximate floating point equality comparisons and assertions. Real use: 534K downloads a day on quiet days; 2,697 crates depend on it.Read it next →Also worth your time