Releases: wrenger/bitfield-struct-rs
Releases · wrenger/bitfield-struct-rs
0.4.4
Suppress new clippy::bad_bit_mask
lint.
0.4.2
Fixed negative integer bounds checks.
0.4.1
Fixing regression: dependency to std.
0.4.0
This release has two main changes:
Firstly syn was updated to 2.0, and secondly, usize
and isize
fields now work correctly when cross-compiling.
However, the bit sizes must now be explicitly specified for fields with these types.
Previously there was a problem when the target architecture that used a different byte size for these types (e.g., when compiling for 32-bit i686 on an x86_64 host). The proc-macro incorrectly used the size of the host architecture (which executed the macro) instead of the target's type sizes.
0.3.2
Extending and flashing out the documentation.
Apart from that, only minor changes have been made to the code generation.
0.3.0
Support for custom types that are convertible from/into the bitfield's underlying type.
0.2.0
There is now a way to opt out from generating Debug
implementations using #[bitfield(u64, debug = false)]
.
Additionally, the macro creates constant members with the bit size (<NAME>_BITS
) and offset (<NAME>_OFFSET
) for each member.
0.1.8
Auto-implement debug traits and support any zero-sized type (e.g. markers).
0.1.7
:bug: Fix single bit ints