Files
third_party_rust_num_cpus/README.md
T
Sean McArthur 1aeb70231f v0.1.0
2015-03-16 11:42:22 -07:00

261 B

num_cpus

A replacement for the deprecated std::os::num_cpus.

Usage

Add to Cargo.toml:

[dependencies]
num_cpus = "*"

In your main.rs or lib.rs:

extern crate num_cpus;

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

License

MIT