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 |
|
#1466 in Procedural macros
660 downloads per month
Used in bitstructs
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
的宏库。
提供了bitstruct
、bitstruct_cow
、bitstruct_small
三个宏,用于生成BitStruct
的实现。
以及bitstruct_field_enum
宏,用于安全的生成BitStruct
中字段的枚举类型。
详细用法请参考bitstructs
的文档。
Dependencies
~240–690KB
~16K SLoC