Separate host and device tests

* To enable multilib for rust_test on device,
  but not for rust_test_host yet.
  Host tests depend on proc-macro2 library,
  which does not build for multilib on host yet.
* On device tests must link in static libraries
  since their .so versions are not installed
  in system/lib* yet.

Bug: 158677299
Test: mm in external/rust/crates
Test: atest -c --include-subdirs external/rust/crates
Change-Id: I017dfd2f56b1b9fa0e213c04fa8eadf738bfecae
2 files changed
tree: 257be0544695ba11597f8498d6ad6365e7b4d84f
  1. .cargo_vcs_info.json
  2. .gitignore
  3. .rustfmt.toml
  4. .travis.yml
  5. Android.bp
  6. Cargo.toml
  7. Cargo.toml.orig
  8. LICENSE-APACHE
  9. LICENSE-MIT
  10. METADATA
  11. MODULE_LICENSE_APACHE2
  12. OWNERS
  13. README.md
  14. TEST_MAPPING
  15. src/
  16. tests/
README.md

pin-utils

Utilities for pinning

Build Status Crates.io

Documentation

Usage

First, add this to your Cargo.toml:

[dependencies]
pin-utils = "0.1.0-alpha.4"

Now, you can use it:

use pin_utils::pin_mut; // And more...

The current version of pin-utils requires Rust 1.33 or later.

License

This project is licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in pin-utils by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.