Add Android.bp

Test: atest
Change-Id: Ia01a4e03d157ea30704397e0681c01e70e71cd28
1 file changed
tree: cdbb15b80cfa1343584e929bfda8c7d359979eea
  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. ci/
  18. examples/
  19. fixtures/
  20. 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();