You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
1 year ago | |
|---|---|---|
| .. | ||
| .github/workflows | 1 year ago | |
| patches | 1 year ago | |
| src | 1 year ago | |
| tests | 1 year ago | |
| .cargo_vcs_info.json | 1 year ago | |
| .gitignore | 1 year ago | |
| Android.bp | 1 year ago | |
| CHANGELOG.md | 1 year ago | |
| CODE_OF_CONDUCT.md | 1 year ago | |
| Cargo.toml | 1 year ago | |
| Cargo.toml.orig | 1 year ago | |
| LICENSE | 1 year ago | |
| LICENSE-APACHE | 1 year ago | |
| LICENSE-MIT | 1 year ago | |
| METADATA | 1 year ago | |
| MODULE_LICENSE_APACHE2 | 1 year ago | |
| OWNERS | 1 year ago | |
| README.md | 1 year ago | |
| TEST_MAPPING | 1 year ago | |
| cargo2android.json | 1 year ago | |
README.md
bitflags
A Rust macro to generate structures which behave like a set of bitflags
Usage
Add this to your Cargo.toml:
[dependencies]
bitflags = "1.3"
and this to your source code:
use bitflags::bitflags;
Rust Version Support
The minimum supported Rust version is 1.46 due to use of associated constants and const functions.