forked from mirrors/gecko-dev
This unveiled a couple UB-ish uses (missing repr(C) or use of enums). Differential Revision: https://phabricator.services.mozilla.com/D210752
2.4 KiB
2.4 KiB
bytemuck_derive changelog
1.6.0
- This allows
CheckedBitPatternto be derived for enums with fields. The repr must be one of the following:#[repr(C)]#[repr(C, int)]#[repr(int)]#[repr(transparent)]
1.5.0
- The
Zeroablederive now allows custom bounds. See the rustdoc for an explanation.
1.4.1
- Move the
syndependency to use version 2. This should not affect the public API in any way.
1.4.0
ByteEqandByteHashderives will makeEqandHashimpls that treat the value as a&[u8]during equality checks and hashing. This provides a large codegen improvement for some types.- Derives of
repr(int)enums should now accept byte literal values as the discriminant.
1.3.0
- Allow
repr(transparent)to be used generically inderive(Pod).
1.2.1
- Fixed a regression of the
align(N)attribute that occurred during otherwise routine cleanup.
1.2.0
- Apparently our minimum required version of
synwent up without anyone noticing for a while. Because of a bump in oursynrequirements, we're also issuing this minor version bump in thebytemuck_derivecrate. Because it's possible to reduce the minimum required version of a dep in only a patch release, I'm going to ratchet the required version ofsynall the way up to "current" (1.0.99). If absolutely necessary we could probably reduce the minimumsynversion again in a patch release for 1.2, but I don't want to play this dance too much so I'd rather make each jump as big as can possibly be. Issue 122. Note: While the corebytemuckcrate continues to keep building on rustc-1.34.0, thebytemuck_derivecrate is considered an opt-in bonus feature (which doesn't do anything you couldn't trivially do yourself) and so it does not support a specific MSRV.
1.1.1
- Adjusted the license files to use full files rather than symlinks. PR The license is unchanged, just no more symlinks.
1.1.0
- Updated to work with
bytemuck-1.9.0
1.0.1
1.0.0
- Initial stable release.