Clean up rust_test_host TEST_MAPPING after default update am: b29d50ec96 am: 9f5d956854 am: df7743ea99 am: f21617a5ba

Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/num_cpus/+/1591331

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I568bcbf296f0c51d196b2b5bcf0c1be429329e29
tree: 4afc3dff3d9d3140a699ccd8da58902797525be6
  1. ci/
  2. examples/
  3. fixtures/
  4. patches/
  5. src/
  6. .appveyor.yml
  7. .cargo_vcs_info.json
  8. .gitignore
  9. .travis.yml
  10. Android.bp
  11. Cargo.lock
  12. Cargo.toml
  13. Cargo.toml.orig
  14. CHANGELOG.md
  15. CONTRIBUTING.md
  16. LICENSE-APACHE
  17. LICENSE-MIT
  18. METADATA
  19. MODULE_LICENSE_APACHE2
  20. OWNERS
  21. README.md
README.md

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