rustio rustio.net
59

num_cpus

v1.17.0 Growing

Get the number of CPUs on a machine.

MIT OR Apache-2.0
Hardware support #cpu#cpus#cores

Quick Verdict

  • Not updated for 1+ year
  • Stable API (1.x for 11+ years)
  • Massive adoption (47.9K crates depend on it)
  • Tiny footprint (16KB, 2 deps)
  • Permissive license (MIT OR Apache-2.0)

Security

Checking security advisories...
Downloads
526.8M
Dependents
47.9K
Releases
40
Size
16KB

Deep Insights

📊
Stable downloads

25.1M downloads in the last 30 days (837.7K/day). Volume is roughly flat compared to the previous period.

🏛️
Foundational crate

47.9K crates depend on num_cpus — it's part of the Rust ecosystem's core infrastructure. Removing it from your dependency tree would be extremely difficult.

⚠️
Single maintainer risk

num_cpus has only 1 owner despite 47.9K dependents. This is a bus-factor concern — consider the implications for long-term support.

Stable for 11+ years

The API has been stable (1.x) for over 11 years with 40 releases. This level of maturity means you can depend on it without worrying about breaking changes.

🪶
Minimal dependencies

Only 2 direct dependencies. Lean dependency tree means faster builds and lower supply chain risk.

📐
Compact crate

At 16KB, num_cpus is lightweight. Small crate size correlates with focused, well-scoped functionality.

🌟
Used by top crates

Notable dependents include ryu, reqwest, crossbeam-channel, arc-swap, zmij. When high-quality crates choose num_cpus, it's a strong quality signal.

Health Breakdown

Maintenance 7/25

Recency, release consistency, active ratio

Quality 19/25

Yanked ratio, deps, size, maturity, features

Community 14/20

Reverse deps, ownership, ecosystem

Popularity 8/15

Downloads, momentum, growth trend

Documentation 11/15

Docs, repo, license, metadata

Download Trend

Daily downloads · last 90 days
796K/day avg-52%
0500K1.0M4/265/146/16/197/77/24

Top Dependents

Version Adoption

v1.16.0
39%
v1.17.0
32%
v1.15.0
11%
v1.13.1
10%
v1.13.0
9%

Release Timeline

10 releasessince 2019
J
F
M
A
M
J
J
A
S
O
N
D
2019
3
2020
2
2021
1
2022
2
2023
1
2024
2025
1
2026
Less
More

README

Loading README...

Maintainers

Dependencies
2
direct dependencies
Dependents
47.9K
crates depend on num_cpus

Similar Crates