Snap for 10453563 from 0773d29573d2deb8a8eb41a2a2172ebc6bcd56fd to mainline-conscrypt-release Change-Id: I3bc5ff3f1f8a47c3a5509b15b178ba41e268b801
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:
main.rs
lib.rs
extern crate num_cpus; // count logical cores this process could try to use let num = num_cpus::get();