#flags #binary #macro #fields #add #dealing #binf

macro binf_macros

A crate that adds utilities for dealing with binary flags

9 releases (stable)

new 1.1.4 Oct 20, 2024
1.1.3 Aug 13, 2024
1.1.2 Jun 15, 2024
1.1.1 Feb 9, 2024
0.1.1 Oct 6, 2023

#1853 in Procedural macros

32 downloads per month
Used in binf

MIT license

8KB
134 lines

binf, Binary Flags

This crate aims to make working with binary/bit flags easier. It also provides a macro to add similar functionality to zig's packed structs with boolean fields.

i suggest looking at tests.rs for examples

Dependencies

~305–770KB
~18K SLoC