Sourced from bytemuck's changelog.
1.16.0
- Adds a
const_zeroedfeature (MSRV 1.75) which puts azeroedfn at the crate root. This is just like theZeroable::zeroedmethod, but as aconst fn.1.15.0
This primarily relaxes the bounds on a
Fromimpl.Previously:
impl<T: NoUninit> From<Box<T>> for BoxBytesNow:
impl<T: ?Sized + sealed::BoxBytesOf> From<Box<T>> for BoxBytesAll related functions and methods are similarly updated.
We believe this to be backwards compatible with all previous uses, and now
BoxBytescan be converted to/from more types than before.1.14.3
- The new std simd nightly features are apparently arch-specific. This adjusts the feature activation to be x86/ x86_64 only.
1.14.2
- Changes the name of the Nightly feature activated by the crate's
nightly_stdsimdfeature. This is needed as of (approximately) Nightly 2024-02-06 and later, because the Nightly feature was changed.1.14.1
- docs clarifications.
1.14
write_zeroesandfill_zeroesfunctions: 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_offsetfeature: causes pointer alignment checks to use thealign_offsetpointer 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_castfeature: 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.
... (truncated)
4c46b91
chore: Release bytemuck version 1.16.05287f8c
we can put out 1.16 without waiting for morea41510f
put const_zeroed into the changelog9319f48
make clippy be quiet about useless nonsense.b39b681
fix up docs warnings99e9508
support const zeroed() (#240)7ef8801
Add documentation to generated public items (#236)eeb6e9d
Update TransparentWrapper asserts (#232)0c821ce
Fix miri CI (#231)4d2fc16
chore: Release bytemuck version 1.15.0