Crates / num_cpus / Alternatives
Rust crate alternatives · data Oct 24, 2026
Alternatives to num_cpus
Short answerThe closest alternatives to num_cpus on crates.io data are sysinfo (645K real downloads a day), cpufeatures (4.1M real downloads a day), r-efi (2.1M real downloads a day). Of the 5 we list, the most used is cpufeatures, and 5 shipped a release in the last year. num_cpus itself gets 1,159,443 a day with 2,795 dependents.
Every alternative we found
| Alternative | Real downloads a day | vs num_cpus | Dependents | Last release | Why it is listed | |
|---|---|---|---|---|---|---|
| sysinfo Widely used | 644,904 | 0.56x | 2,167 | 4mo | keyword "cpu" | side by side |
| cpufeatures Pulled in | 4,097,423 | 3.53x | 81 | 59d | category Hardware support | compare |
| r-efi Pulled in | 2,051,196 | 1.77x | 14 | 2mo | category Hardware support | compare |
| portable-atomic Established | 1,871,271 | 1.61x | 512 | 2mo | category Hardware support | compare |
| cmov Pulled in | 852,311 | 0.74x | 3 | 5mo | category Hardware support | compare |
How to choose
- Same job, not the same API. Each line is listed because it shares a crates.io category or keyword with num_cpus; 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 num_cpus: 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 num_cpus, 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. 644,904 real downloads a day.sysinfoRust crate. Library to get system information such as processes, CPUs, disks, components and networks. Real use: 645K downloads a day on quiet days; 2,167 crates depend...Read it next →Also worth your time