2 releases

new 0.1.2 Mar 4, 2025
0.1.1 Feb 24, 2025
0.1.0 Feb 23, 2025

#581 in Procedural macros

Download history 247/week @ 2025-02-21 163/week @ 2025-02-28

410 downloads per month
Used in bitstructs

MIT license

67KB
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

~200–630KB
~15K SLoC