#bitflags #bit #flags #bitmask

no-std bitflags12

A macro to generate structures which behave like bitflags

4 releases (2 stable)

Uses old Rust 2015

1.2.2 Nov 9, 2021

#207 in No standard library

MIT/Apache

50KB
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