This commit is contained in:
Lokathor 2023-09-05 15:06:36 -06:00
parent 01c2a07013
commit c22cf36bec
2 changed files with 12 additions and 3 deletions

View File

@ -2,3 +2,9 @@
# bytemuck_derive
Derive macros for [bytemuck](https://docs.rs/bytemuck) traits.
MSRV: None!
This is an opt-in bonus feature for `bytemuck` that doesn't particularly do
anything you couldn't do yourself, and so MSRV is not a strong consideration for
this crate.

View File

@ -12,8 +12,11 @@
## 1.4.0
* ByteEq and ByteHash derives will make Eq and Hash impls that treat the value as a &[u8]. This provides a large codegen improvement for some types.
* Derives of repr(int) enums should now accept byte literal values as the discriminant.
* `ByteEq` and `ByteHash` derives will make `Eq` and `Hash` impls 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
@ -31,7 +34,7 @@
issuing this minor version bump in the `bytemuck_derive` crate. 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 of `syn` all the way up to
"curret" (1.0.99). If absolutely necessary we could probably reduce the
"current" (1.0.99). If absolutely necessary we could probably reduce the
minimum `syn` version 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](https://github.com/Lokathor/bytemuck/issues/122). **Note:**