[automerger skipped] Merge Android 12 QPR3 ab/8391262 am: a97e94178b -s ours am: 1a237f64e8 -s ours am: cc292e951a -s ours am: 57cd80c500 -s ours

am skip reason: Merged-In I29b3462f62a9942adab2703ebdf2893349154ef0 with SHA-1 4eab12190c is already in history

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

Change-Id: Iaeb63b5e52526bbd9009fc3fdfb5dc6d4cc2def4
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
tree: 2393cab2d6fc52727bf365f0b2e300b32f0585f9
  1. .github/
  2. patches/
  3. src/
  4. tests/
  5. .cargo_vcs_info.json
  6. .gitignore
  7. Android.bp
  8. Cargo.toml
  9. Cargo.toml.orig
  10. cargo2android.json
  11. CHANGELOG.md
  12. CODE_OF_CONDUCT.md
  13. LICENSE-APACHE
  14. LICENSE-MIT
  15. METADATA
  16. MODULE_LICENSE_APACHE2
  17. OWNERS
  18. README.md
  19. TEST_MAPPING
README.md

bitflags

Rust Join the chat at https://gitter.im/bitflags/Lobby Latest version Documentation License

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

Usage

Add this to your Cargo.toml:

[dependencies]
bitflags = "1.3"

and this to your source code:

use bitflags::bitflags;

Rust Version Support

The minimum supported Rust version is 1.46 due to use of associated constants and const functions.