2 releases
new 0.1.2 | Mar 4, 2025 |
---|---|
0.1.1 | Feb 24, 2025 |
0.1.0 |
|
#581 in Procedural macros
410 downloads per month
Used in bitstructs
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
的宏库。
提供了bitstruct
、bitstruct_cow
、bitstruct_small
三个宏,用于生成BitStruct
的实现。
以及bitstruct_field_enum
宏,用于安全的生成BitStruct
中字段的枚举类型。
详细用法请参考bitstructs
的文档。
Dependencies
~200–630KB
~15K SLoC