commit | 4eab12190cda7a2cdd04a3178d0ec76ab5ab1204 | [log] [tgz] |
---|---|---|
author | Andrew Walbran <[email protected]> | Wed Mar 30 18:38:17 2022 +0000 |
committer | Automerger Merge Worker <[email protected]> | Wed Mar 30 18:38:17 2022 +0000 |
tree | 2393cab2d6fc52727bf365f0b2e300b32f0585f9 | |
parent | 90125b4ea7ff80f0a8ced9f1c86723ed4dddc6d0 [diff] | |
parent | e6427cd03c69e5f63a825e47dbb56427da54a2b5 [diff] |
Don't add std dependency when building rlib. am: ab2400dbd9 am: e6427cd03c Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/bitflags/+/2036445 Change-Id: I29b3462f62a9942adab2703ebdf2893349154ef0 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.