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

macro binf_macros

A crate that adds utilities for dealing with binary flags

9 releases (stable)

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

#2198 in Procedural macros

Download history 22/week @ 2024-09-24 4/week @ 2024-10-01 2/week @ 2024-10-08 149/week @ 2024-10-15 25/week @ 2024-10-22 4/week @ 2024-10-29 15/week @ 2024-11-05 2/week @ 2024-11-19 1/week @ 2024-12-03 7/week @ 2024-12-10

602 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

~235–680KB
~16K SLoC