mirror of
https://git.proxmox.com/git/rustc
synced 2025-08-16 09:29:33 +00:00
35 lines
1.1 KiB
Markdown
35 lines
1.1 KiB
Markdown
bitflags
|
|
========
|
|
|
|
[](https://travis-ci.com/bitflags/bitflags)
|
|
[](https://gitter.im/bitflags/Lobby?utm_source=badge&utm_medium=badge&utm_content=badge)
|
|
[](https://crates.io/crates/bitflags)
|
|
[](https://docs.rs/bitflags)
|
|

|
|

|
|
|
|
A Rust macro to generate structures which behave like a set of bitflags
|
|
|
|
- [Documentation](https://docs.rs/bitflags)
|
|
- [Release notes](https://github.com/bitflags/bitflags/releases)
|
|
|
|
## Usage
|
|
|
|
Add this to your `Cargo.toml`:
|
|
|
|
```toml
|
|
[dependencies]
|
|
bitflags = "1.0"
|
|
```
|
|
|
|
and this to your crate root:
|
|
|
|
```rust
|
|
#[macro_use]
|
|
extern crate bitflags;
|
|
```
|
|
|
|
## Rust Version Support
|
|
|
|
The minimum supported Rust version is 1.20 due to use of associated constants.
|