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

#4 in #bitstruct

47 downloads per month
Used in bitstructs

MIT license

66KB
1.5K SLoC

该库是bitstructs的宏库。

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


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.

Dependencies

~210–640KB
~15K SLoC