#bit #bitmask #bitflags #flags

no-std bitflags

A macro to generate structures which behave like bitflags

24 releases (5 stable)

1.0.4 Aug 21, 2018
1.0.3 Apr 30, 2018
1.0.1 Nov 12, 2017
0.9.1 May 29, 2017
0.1.1 Feb 9, 2015

#1 in No standard library

Download history 91716/week @ 2018-09-10 106050/week @ 2018-09-17 104859/week @ 2018-09-24 105097/week @ 2018-10-01 109336/week @ 2018-10-08 109492/week @ 2018-10-15 104628/week @ 2018-10-22 115906/week @ 2018-10-29 113846/week @ 2018-11-05 114822/week @ 2018-11-12 117601/week @ 2018-11-19 111102/week @ 2018-11-26 103203/week @ 2018-12-03

418,142 downloads per month
Used in 8,095 crates (525 directly)

MIT/Apache

39KB
745 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