4 releases

Uses new Rust 2024

0.2.1 Mar 16, 2025
0.2.0 Mar 16, 2025
0.1.2 Mar 4, 2025
0.1.1 Feb 24, 2025
0.1.0 Feb 23, 2025

#1466 in Procedural macros

Download history 258/week @ 2025-02-23 168/week @ 2025-03-02 12/week @ 2025-03-09 222/week @ 2025-03-16

660 downloads per month
Used in bitstructs

MIT license

66KB
1.5K SLoC

The crate is a procedural macro library for bitstructs. bitstructs definies type-safe bitfield structures that can be used in both std and no_std environments.


lib.rs:

该库是bitstructs的宏库。

提供了bitstructbitstruct_cowbitstruct_small三个宏,用于生成BitStruct的实现。 以及bitstruct_field_enum宏,用于安全的生成BitStruct中字段的枚举类型。 详细用法请参考bitstructs的文档。

Dependencies

~240–690KB
~16K SLoC