commit | 6af5747575f499382056a37ac03ddd2e3caec8bc | [log] [tgz] |
---|---|---|
author | Janis Danisevskis <jdanis@google.com> | Mon Nov 15 23:07:17 2021 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Mon Nov 15 23:07:17 2021 +0000 |
tree | 8ff81e914e07610263b5dd03d297e04d977d6e86 | |
parent | 14b7f4a63cbc67f76d6ca27f1fc65ea0572ffe5e [diff] | |
parent | 36c0b9ebf4844269a5263e6dd91df797a4d2de77 [diff] |
Make vendor available. am: a250037d1e am: 36c0b9ebf4 Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/bitflags/+/1886800 Change-Id: Ib7dba766f90d149fb9d1fda7f48cdea97ca15d04
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.