Count the number of CPUs on the current machine.
Add to Cargo.toml:
[dependencies] num_cpus = "1.0"
In your main.rs
or lib.rs
:
extern crate num_cpus; // count logical cores this process could try to use let num = num_cpus::get();About
Get the number of CPUs in Rust
Topics Resources License Apache-2.0, MIT licenses found Licenses foundApache-2.0
LICENSE-APACHE Contributing Stars Watchers ForksYou can’t perform that action at this time.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4