TEST_MAPPING: test dependers of this crate

Bug: 168167373
Test: TH
Change-Id: Ie4359cf969e02b7ac497f20c92d4f0fbe666cd6d
1 file changed
tree: b6646e789f070760c23d8235b86986a58116ae4b
  1. .appveyor.yml
  2. .cargo_vcs_info.json
  3. .gitignore
  4. .travis.yml
  5. Android.bp
  6. CHANGELOG.md
  7. CONTRIBUTING.md
  8. Cargo.lock
  9. Cargo.toml
  10. Cargo.toml.orig
  11. LICENSE-APACHE
  12. LICENSE-MIT
  13. METADATA
  14. MODULE_LICENSE_APACHE2
  15. OWNERS
  16. README.md
  17. TEST_MAPPING
  18. ci/
  19. examples/
  20. fixtures/
  21. src/
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();