commit | 19a0ccbdab1539c5d011d1903849d43733bbea7a | [log] [tgz] |
---|---|---|
author | Matthew Maurer <mmaurer@google.com> | Tue Mar 07 17:23:27 2023 -0800 |
committer | Matthew Maurer <mmaurer@google.com> | Tue Mar 07 17:23:27 2023 -0800 |
tree | ae4e51e69278b95d9ee59f9f1c0469981f913668 | |
parent | 2ce77041a38099034c6c6781e2d7c29fb0c7ee27 [diff] |
Make bitflags available to product and vendor Bug: 270690570 Test: mma in external/rust/crates Change-Id: Ie6af13b5d4b08802e53daa819a5bdaf42eba7742
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.