Allow building for device. am: d296d1a7da am: 392862428c am: b8db4a38e6 am: 7e0e08f9c5 am: 724c38bcc6

Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/pin-utils/+/1333195

Change-Id: Iaf5952d29f205ce162ffb263e3cedf8a4bf97951
tree: 06b398b6bb2748a5cccc74801fec261f14dd85ab
  1. src/
  2. tests/
  3. .cargo_vcs_info.json
  4. .gitignore
  5. .rustfmt.toml
  6. .travis.yml
  7. Android.bp
  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. TEST_MAPPING
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.