gecko-dev/third_party/rust/num_cpus
Nathan Froyd b93bf873ba Bug 1502964 - part 2 - update winapi to froydnj/winapi-rs#aarch64; r=ted.mielczarek 2018-11-02 10:56:08 -04:00
..
src No bug - Revendor rust dependencies 2017-11-01 12:08:58 +00:00
.cargo-checksum.json Bug 1502964 - part 2 - update winapi to froydnj/winapi-rs#aarch64; r=ted.mielczarek 2018-11-02 10:56:08 -04:00
CHANGELOG.md No bug - Revendor rust dependencies 2017-11-01 12:08:58 +00:00
CONTRIBUTING.md No bug - Revendor rust dependencies 2017-11-01 12:08:58 +00:00
Cargo.toml No bug - Revendor rust dependencies 2017-11-01 12:08:58 +00:00
LICENSE-APACHE
LICENSE-MIT
README.md No bug - Revendor rust dependencies 2017-11-01 12:08:58 +00:00

README.md

num_cpus

crates.io Travis CI Status AppVeyor status

Count the number of CPUs on the current machine.

Usage

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();