Skip to content

Releases: wrenger/bitfield-struct-rs

0.4.4

05 Jun 20:40
Compare
Choose a tag to compare

Suppress new clippy::bad_bit_mask lint.

0.4.2

17 May 16:03
Compare
Choose a tag to compare

Fixed negative integer bounds checks.

0.4.1

31 Mar 16:54
Compare
Choose a tag to compare

Fixing regression: dependency to std.

0.4.0

31 Mar 14:40
Compare
Choose a tag to compare

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

24 Jan 12:39
Compare
Choose a tag to compare

Extending and flashing out the documentation.
Apart from that, only minor changes have been made to the code generation.

0.3.1

14 Jan 20:51
Compare
Choose a tag to compare
:memo: Docs

0.3.0

14 Jan 20:41
Compare
Choose a tag to compare

Support for custom types that are convertible from/into the bitfield's underlying type.

0.2.0

23 Dec 11:59
Compare
Choose a tag to compare

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

22 Dec 09:32
Compare
Choose a tag to compare

Auto-implement debug traits and support any zero-sized type (e.g. markers).

0.1.7

05 May 15:04
Compare
Choose a tag to compare
:bug: Fix single bit ints