12 releases (5 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.2 Dec 8, 2022

#550 in Rust patterns

Download history 1/week @ 2024-02-07 11/week @ 2024-02-14 34/week @ 2024-02-21 7/week @ 2024-02-28 14/week @ 2024-03-27 27/week @ 2024-04-03

60 downloads per month

MIT license

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


lib.rs:

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.

Dependencies

~320–770KB
~18K SLoC