Sourced from bytemuck's changelog.
1.14.1
- docs clarifications.
1.14
write_zeroes
andfill_zeroes
functions: Writes (to one) or fills (a slice) zero bytes to all bytes covered by the provided reference. If your type has padding, this will even zero out the padding bytes.align_offset
feature: causes pointer alignment checks to use thealign_offset
pointer method rather than as-casting the pointer tousize
. This may improve codegen, if the compiler would have otherwise thought that the pointer address escaped. No formal benchmarks have been done either way.must_cast
feature: Addsmust_*
family of functions. These functions will fail to compile if the cast requested can't be statically known to succeed. The error messages can be kinda bad when this happens, but eliminating the possibility of a runtime error might be worth it to you.1.13.1
- Remove the requirement for the source data type to be
AnyBitPattern
onpod_collect_to_vec
, allowing you to pod collect vecs ofchar
into vecs ofu32
, or whatever.1.13
- Now depends on
bytemuck_derive-1.4.0
- Various small enhancements that would have been patch version updates, but which have been rolled into this minor version update.
1.12.4
- This has additional impls for existing traits and cleans up some internal code, but there's no new functions so I guess it counts as just a patch release.
1.12.3
- This bugfix makes the crate do stuff with
Arc
or not based on thetarget_has_atomic
config. Previously, some targets that have allocation but not atomics were getting errors. This raises the MSRV of theextern_crate_alloc
feature to 1.60, but opt-in features are not considered to be hard locked to 1.34 like the basic build of the crate is.1.12.2
- Fixes
try_pod_read_unaligned
bug that made it always fail unless the target type was exactly pointer sized in which case UB could happen. TheCheckedBitPattern::is_valid_bit_pattern
was being asked to check that a reference to thepod
value was a valid bit pattern, rather than the actual bit pattern itself, and so the check could in some cases be illegally
... (truncated)
1e1a22e
chore: Release bytemuck version 1.14.12ae1a14
changelog8dc32b1
Explicitly document that pod_read_unaligned and try_pod_read_unaligned
don't ...085a5f5
Revise the crate-level docs.c705218
Added custom crate path with tests (#209)fd27a5b
Add from_box_bytes and box_bytes_of with BoxBytes type (#211)d10fbfc
allow deriving CheckedBitPattern
for enums with fields (#171)