Allow building for device. am: 4bf8ff97c2 am: ac5aa0607f am: 8cedc88b1a am: cf2d4f4e13 am: 1a33e65ef1

Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/bitflags/+/1324495

Change-Id: I492cae211f072451bbc53445e503de33af1d4433
tree: 345e94cb624d2fb8a9c07d77b5c6fd6148717054
  1. src/
  2. .cargo_vcs_info.json
  3. .gitignore
  4. Android.bp
  5. build.rs
  6. Cargo.toml
  7. Cargo.toml.orig
  8. CHANGELOG.md
  9. CODE_OF_CONDUCT.md
  10. LICENSE-APACHE
  11. LICENSE-MIT
  12. METADATA
  13. MODULE_LICENSE_APACHE2
  14. OWNERS
  15. README.md
README.md

bitflags

Build Status Join the chat at https://gitter.im/bitflags/Lobby Latest version Documentation Minimum rustc version License

A Rust macro to generate structures which behave like a set of bitflags

Usage

Add this to your Cargo.toml:

[dependencies]
bitflags = "1.0"

and this to your crate root:

#[macro_use]
extern crate bitflags;

Rust Version Support

The minimum supported Rust version is 1.20 due to use of associated constants.