Bug: 171337558

Clone this repo:
  1. 26ca985 Generate apex_available from c2a instead of a patch by Joel Galenson · 8 days ago master
  2. e9dcd55 Mark ab/7061308 as merged in stage. by Xin Li · 3 months ago
  3. 9f5d956 Clean up rust_test_host TEST_MAPPING after default update am: b29d50ec96 by Julien Desprez · 3 months ago
  4. b29d50e Clean up rust_test_host TEST_MAPPING after default update by Julien Desprez · 3 months ago android-s-preview-1
  5. 98ea454 [LSC] Add LOCAL_LICENSE_KINDS to external/rust/crates/num_cpus am: 3073e72dc7 by Bob Badour · 3 months ago

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