Jason Macnak | efaa095 | 2019-12-12 22:33:33 +0000 | [diff] [blame] | 1 | bitflags |
| 2 | ======== |
| 3 | |
| 4 | [](https://travis-ci.com/bitflags/bitflags) |
| 5 | [](https://gitter.im/bitflags/Lobby?utm_source=badge&utm_medium=badge&utm_content=badge) |
| 6 | [](https://crates.io/crates/bitflags) |
| 7 | [](https://docs.rs/bitflags) |
| 8 |  |
| 9 |  |
| 10 | |
| 11 | A Rust macro to generate structures which behave like a set of bitflags |
| 12 | |
| 13 | - [Documentation](https://docs.rs/bitflags) |
| 14 | - [Release notes](https://github.com/bitflags/bitflags/releases) |
| 15 | |
| 16 | ## Usage |
| 17 | |
| 18 | Add this to your `Cargo.toml`: |
| 19 | |
| 20 | ```toml |
| 21 | [dependencies] |
| 22 | bitflags = "1.0" |
| 23 | ``` |
| 24 | |
| 25 | and this to your crate root: |
| 26 | |
| 27 | ```rust |
| 28 | #[macro_use] |
| 29 | extern crate bitflags; |
| 30 | ``` |
| 31 | |
| 32 | ## Rust Version Support |
| 33 | |
| 34 | The minimum supported Rust version is 1.20 due to use of associated constants. |