gecko-dev/third_party/rust/num_cpus-1.6.2
Emilio Cobos Álvarez 6821b4e553 No bug - Update num_cpus to try to fix bustage. r=me
On a CLOSED TREE

MozReview-Commit-ID: KxCbwtGxZnO
2017-11-03 18:24:47 +01:00
..
src No bug - Update num_cpus to try to fix bustage. r=me 2017-11-03 18:24:47 +01:00
.appveyor.yml No bug - Update num_cpus to try to fix bustage. r=me 2017-11-03 18:24:47 +01:00
.cargo-checksum.json No bug - Update num_cpus to try to fix bustage. r=me 2017-11-03 18:24:47 +01:00
.travis.yml No bug - Update num_cpus to try to fix bustage. r=me 2017-11-03 18:24:47 +01:00
Cargo.toml No bug - Update num_cpus to try to fix bustage. r=me 2017-11-03 18:24:47 +01:00
LICENSE-APACHE No bug - Update num_cpus to try to fix bustage. r=me 2017-11-03 18:24:47 +01:00
LICENSE-MIT No bug - Update num_cpus to try to fix bustage. r=me 2017-11-03 18:24:47 +01:00
README.md No bug - Update num_cpus to try to fix bustage. r=me 2017-11-03 18:24:47 +01:00

README.md

num_cpus

crates.io Travis CI Status AppVeyor status

Documentation

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;

// elsewhere
let num = num_cpus::get();

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.