num_cpus
v1.17.0 GrowingGet the number of CPUs on a machine.
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
Deep Insights
24.3M downloads in the last 30 days (808.6K/day), up 14% from the previous period.
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.
num_cpus has only 1 owner despite 42.9K dependents. This is a bus-factor concern โ consider the implications for long-term support.
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.
Only 2 direct dependencies. Lean dependency tree means faster builds and lower supply chain risk.
At 16KB, num_cpus is lightweight. Small crate size correlates with focused, well-scoped functionality.
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
Recency, release consistency, active ratio
Yanked ratio, deps, size, maturity, features
Reverse deps, ownership, ecosystem
Downloads, momentum, growth trend
Docs, repo, license, metadata
Download Trend
Top Dependents
Most downloaded crates that depend on num_cpus