#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

#1618 in Procedural macros

Download history 19/week @ 2023-12-25 3/week @ 2024-01-01 8/week @ 2024-02-05 20/week @ 2024-02-19 15/week @ 2024-02-26 4/week @ 2024-03-11 87/week @ 2024-04-01

91 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–750KB
~18K SLoC