commit | 1a237f64e8fe0d5361376dd67734442a80b2c395 | [log] [tgz] |
---|---|---|
author | Xin Li <[email protected]> | Sun Apr 03 02:24:30 2022 +0000 |
committer | Automerger Merge Worker <[email protected]> | Sun Apr 03 02:24:30 2022 +0000 |
tree | 2393cab2d6fc52727bf365f0b2e300b32f0585f9 | |
parent | 4eab12190cda7a2cdd04a3178d0ec76ab5ab1204 [diff] | |
parent | a97e94178b4236eccae051697340b84352f15b58 [diff] |
[automerger skipped] Merge Android 12 QPR3 ab/8391262 am: a97e94178b -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: I500b061f4b989b097d69798605af3fd9fed4a382 Signed-off-by: Automerger Merge Worker <[email protected]>
A Rust macro to generate structures which behave like a set of bitflags
Add this to your Cargo.toml
:
[dependencies] bitflags = "1.3"
and this to your source code:
use bitflags::bitflags;
The minimum supported Rust version is 1.46 due to use of associated constants and const functions.