Add metadata files

Test: None
Change-Id: I7b98b2de4026436b05f56079149e1f5c606fb2b3
4 files changed
tree: 2688bf9a6c8feb1ae92ceae63e88a9f003c76f97
  1. .appveyor.yml
  2. .cargo_vcs_info.json
  3. .gitignore
  4. .travis.yml
  5. CHANGELOG.md
  6. CONTRIBUTING.md
  7. Cargo.lock
  8. Cargo.toml
  9. Cargo.toml.orig
  10. LICENSE-APACHE
  11. LICENSE-MIT
  12. METADATA
  13. MODULE_LICENSE_APACHE2
  14. OWNERS
  15. README.md
  16. ci/
  17. examples/
  18. fixtures/
  19. 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();