#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

#1967 in Procedural macros

Download history 136/week @ 2024-08-12 1/week @ 2024-09-16 26/week @ 2024-09-23 4/week @ 2024-09-30 1/week @ 2024-10-07 129/week @ 2024-10-14 46/week @ 2024-10-21 19/week @ 2024-11-04

194 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

~270–730KB
~17K SLoC