#bit #bitmask #bitflags #flags

no-std bitflags

A macro to generate structures which behave like bitflags

24 releases (8 stable)

new 1.2.1 Oct 13, 2019
1.1.0 Jun 6, 2019
1.0.4 Aug 21, 2018
1.0.3 Apr 30, 2018
0.1.1 Feb 9, 2015

#2 in No standard library

Download history 152193/week @ 2019-06-30 152724/week @ 2019-07-07 155172/week @ 2019-07-14 158088/week @ 2019-07-21 157564/week @ 2019-07-28 161099/week @ 2019-08-04 166046/week @ 2019-08-11 157184/week @ 2019-08-18 156890/week @ 2019-08-25 165372/week @ 2019-09-01 163802/week @ 2019-09-08 171454/week @ 2019-09-15 205566/week @ 2019-09-22 217241/week @ 2019-09-29 212560/week @ 2019-10-06

742,347 downloads per month
Used in 10,313 crates (707 directly)

MIT/Apache

47KB
943 lines

bitflags

Build Status Join the chat at https://gitter.im/bitflags/Lobby Latest version Documentation Minimum rustc version License

A Rust macro to generate structures which behave like a set of bitflags

Usage

Add this to your Cargo.toml:

[dependencies]
bitflags = "1.0"

and this to your crate root:

#[macro_use]
extern crate bitflags;

Rust Version Support

The minimum supported Rust version is 1.20 due to use of associated constants.

No runtime deps