rustio rustio.net
60

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

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

Security

Checking security advisories...
Downloads
433.1M
Dependents
42.9K
Releases
40
Size
16KB

Deep Insights

๐Ÿ“Š
Steady growth

24.3M downloads in the last 30 days (808.6K/day), up 14% from the previous period.

๐Ÿ›๏ธ
Foundational crate

42.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 42.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, threadpool. When high-quality crates choose num_cpus, it's a strong quality signal.

Health Breakdown

Maintenance 8/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
674K/day avg+55%
0200K400K600K800K1.0M12/291/162/32/213/113/28

Top Dependents

Version Adoption

v1.16.0
44%
v1.17.0
21%
v1.15.0
13%
v1.13.1
11%
v1.13.0
11%

Release Timeline

40 releases1 yankedsince 2015
J
F
M
A
M
J
J
A
S
O
N
D
2015
12
2016
6
2017
10
2018
1
2019
4
2020
2
2021
1
2022
2
2023
1
2024
2025
1
2026
Less
More|
Yanked

README

Loading README...

Maintainers

Dependencies
2
direct dependencies
Dependents
42.9K
crates depend on num_cpus

Similar Crates