commit | e36fb8cb48c013e49086ce568985ef17579d231a | [log] [tgz] |
---|---|---|
author | Andrew Walbran <qwandor@google.com> | Fri Jun 05 19:10:26 2020 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Fri Jun 05 19:10:26 2020 +0000 |
tree | 345e94cb624d2fb8a9c07d77b5c6fd6148717054 | |
parent | ce15f96d4423824d444eb66c115059cbf4f9cdb4 [diff] | |
parent | 1a33e65ef192442734bdb930961c275e11919721 [diff] |
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
A Rust macro to generate structures which behave like a set of bitflags
Add this to your Cargo.toml
:
[dependencies] bitflags = "1.0"
and this to your crate root:
#[macro_use] extern crate bitflags;
The minimum supported Rust version is 1.20 due to use of associated constants.