3 [![crates.io](http://meritbadge.herokuapp.com/num_cpus)](https://crates.io/crates/num_cpus)
5 Count the number of CPUs on the current machine.
16 In your `main.rs` or `lib.rs`:
19 extern crate num_cpus;
22 let num = num_cpus::get();
27 Licensed under either of
29 * Apache License, Version 2.0 ([LICENSE-APACHE](LICENSE-APACHE) or http://www.apache.org/licenses/LICENSE-2.0)
30 * MIT license ([LICENSE-MIT](LICENSE-MIT) or http://opensource.org/licenses/MIT)
36 Unless you explicitly state otherwise, any contribution intentionally submitted
37 for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any
38 additional terms or conditions.