#bitfield #proc #proc-macro #bitfields

proc-bitfield

A crate to expressively declare bitfield-like structs

10 releases

0.3.1 Jan 22, 2024
0.3.0 Jul 30, 2023
0.2.4 Jun 30, 2023
0.2.2 Dec 22, 2022
0.0.2 Jul 7, 2022

#453 in Rust patterns

Download history 115/week @ 2023-10-28 114/week @ 2023-11-04 128/week @ 2023-11-11 108/week @ 2023-11-18 160/week @ 2023-11-25 84/week @ 2023-12-02 120/week @ 2023-12-09 119/week @ 2023-12-16 148/week @ 2023-12-23 120/week @ 2023-12-30 92/week @ 2024-01-06 117/week @ 2024-01-13 153/week @ 2024-01-20 117/week @ 2024-01-27 85/week @ 2024-02-03 112/week @ 2024-02-10

488 downloads per month
Used in 7 crates (5 directly)

MIT/Apache

26KB
384 lines

proc-bitfield

crates.io docs.rs

A Rust crate to expressively declare bitfield-like structs, automatically ensuring their correctness at compile time and declaring accessors.

API and syntax docs

Usage examples

License

This project is licensed under a dual MIT/Apache 2.0 license.

Dependencies

~0.4–0.8MB
~19K SLoC