commit | 5cc0dca5ba5195bf2be69fb3a7d1e07121fda995 | [log] [tgz] |
---|---|---|
author | Joel Galenson <jgalenson@google.com> | Wed Dec 15 18:06:47 2021 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Wed Dec 15 18:06:47 2021 +0000 |
tree | 1fc0a7c6e08e6b754b2a698b62747e2996011f81 | |
parent | 87a48d67e40b0333dddbace383ca2e317199ca42 [diff] | |
parent | a6a7464af0d8e508c283ed2df69e0c4c953b5102 [diff] |
Merge "Refresh Android.bp, cargo2android.json, TEST_MAPPING." am: 65aaaa7452 am: 97e48eeb7e am: 3a7ae0cf17 am: a6a7464af0 Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/bitflags/+/1912517 Change-Id: If410924945f60c062fa5368b5eb64a0159ac00cf
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.