#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-07 6/week @ 2024-02-14 20/week @ 2024-02-21 9/week @ 2024-02-28 1/week @ 2024-03-06 3/week @ 2024-03-13 9/week @ 2024-03-27 11/week @ 2024-04-03

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

~0.4–0.8MB
~20K SLoC