#bit #bitmask #bitflags #flags

no-std bitflags

A macro to generate structures which behave like bitflags

26 releases (7 stable)

1.1.0 Jun 6, 2019
1.0.4 Aug 21, 2018
1.0.3 Apr 30, 2018
1.0.1 Nov 12, 2017
0.1.1 Feb 9, 2015

#1 in No standard library

Download history 140441/week @ 2019-02-21 143168/week @ 2019-02-28 143527/week @ 2019-03-07 138996/week @ 2019-03-14 129219/week @ 2019-03-21 138546/week @ 2019-03-28 166815/week @ 2019-04-04 150668/week @ 2019-04-11 156650/week @ 2019-04-18 147859/week @ 2019-04-25 172199/week @ 2019-05-02 176602/week @ 2019-05-09 165122/week @ 2019-05-16 201320/week @ 2019-05-23 158028/week @ 2019-05-30

671,382 downloads per month
Used in 8,652 crates (645 directly)

MIT/Apache

45KB
875 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