commit | 291cbd6ee2ae92c43f0c2e2dc85b2b57a99d6a12 | [log] [tgz] |
---|---|---|
author | Joel Galenson <jgalenson@google.com> | Fri Oct 08 22:18:10 2021 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Fri Oct 08 22:18:10 2021 +0000 |
tree | b2594e1fc7ab61aee60e80ead080e1eef8e6e147 | |
parent | dc1c78d5a0b4d94ed14f02489b11cee72c8c8ba7 [diff] | |
parent | 168b82d2c6de941c35ef45956f46f62a6b7a09dc [diff] |
Merge "Upgrade rust/crates/bitflags to 1.3.2" am: 2c02339005 am: f2dac621d5 am: b71570c826 am: 14b7f4a63c am: 168b82d2c6 Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/bitflags/+/1833574 Change-Id: I8e7b592b4b949058fd6dda961550c20f19080d69
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.