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