commit | ab2400dbd96b5b5c19d6c425c4d8c39ab74c2d38 | [log] [tgz] |
---|---|---|
author | Andrew Walbran <qwandor@google.com> | Tue Mar 22 13:41:49 2022 +0000 |
committer | Andrew Walbran <qwandor@google.com> | Wed Mar 30 15:14:59 2022 +0000 |
tree | 2393cab2d6fc52727bf365f0b2e300b32f0585f9 | |
parent | 90125b4ea7ff80f0a8ced9f1c86723ed4dddc6d0 [diff] |
Don't add std dependency when building rlib. We need to be able to use this crate in no_std binaries. Bug: 168927099 Test: atest -c -m . Change-Id: I4402ef9c5b6089fd495e8343460d9fd459560202
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.