Crates / ref-cast / Alternatives
Rust crate alternatives · data Oct 24, 2026
Alternatives to ref-cast
Short answerThe closest alternatives to ref-cast on crates.io data are thiserror (5M real downloads a day), itertools (4.5M real downloads a day), once_cell (3.8M real downloads a day). Of the 8 we list, the most used is thiserror, and 7 shipped a release in the last year. ref-cast itself gets 1,265,265 a day with 175 dependents.
Every alternative we found
| Alternative | Real downloads a day | vs ref-cast | Dependents | Last release | Why it is listed | |
|---|---|---|---|---|---|---|
| thiserror Foundational | 5,048,791 | 3.99x | 75,923 | 31d | category No standard library, category Rust patterns | compare |
| itertools Widely used | 4,545,996 | 3.59x | 8,656 | 4mo | category No dynamic allocation, category No standard library | compare |
| once_cell Widely used | 3,785,180 | 2.99x | 8,656 | 7mo | category Rust patterns | compare |
| pin-project-lite Widely used | 3,270,978 | 2.59x | 1,708 | 8mo | category No dynamic allocation, category No standard library | compare |
| zerocopy Established | 3,245,504 | 2.57x | 878 | 11d | category No dynamic allocation, category Rust patterns | compare |
| anyhow Foundational | 2,875,638 | 2.27x | 52,113 | 3mo | category No standard library, category Rust patterns | compare |
| scopeguard Established | 2,724,718 | 2.15x | 567 | 3.3y | category No standard library, category Rust patterns | compare |
| zerovec-derive Pulled in | 2,561,390 | 2.02x | 6 | 2d | category No standard library, category Rust patterns | compare |
How to choose
- Same job, not the same API. Each line is listed because it shares a crates.io category or keyword with ref-cast; 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 ref-cast: 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 ref-cast, 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. 5,048,791 real downloads a day.thiserrorRust crate. derive(Error). Real use: 5M downloads a day on quiet days; 75,923 crates depend on it.Read it next →Also worth your time