add crosvm to com.android.virt

To do so, crosvm and its dependencies have the apex_available property
set to "//apex_available:platform", "com.android.virt" to explicitly
acknowledge the joining.

Bug: 174639241
Test: m com.android.virt
Change-Id: I0aee4291b81ffb7b6db931efc78df0400e0ab58d
2 files changed
tree: 4dbae9166891306b19fa13279f53c117ec7cb827
  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
  22. TEST_MAPPING
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();