Skip to content

0.4.0

Compare
Choose a tag to compare
@wrenger wrenger released this 31 Mar 14:40
· 65 commits to main since this release

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.