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

macro binf_macros

A crate that adds utilities for dealing with binary flags

6 releases (stable)

1.1.1 Feb 9, 2024
1.1.0 Dec 29, 2023
1.0.2 Nov 3, 2023
1.0.1 Oct 14, 2023
0.1.1 Oct 6, 2023

#44 in #dealing

Download history 8/week @ 2024-02-06 2/week @ 2024-02-13 20/week @ 2024-02-20 13/week @ 2024-02-27 4/week @ 2024-03-12 1/week @ 2024-03-26 19/week @ 2024-04-02

71 downloads per month
Used in binf

MIT license

9KB
152 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

~310–770KB
~18K SLoC