[0.8.0] - 2025-03-03
New
-
The ReprHash (now AlignHash) of arrays was wrong and could have led to data
corruption. As a result, some serialized file might return an alignment
error. -
The implementation for tuples was broken because it assumed that the memory
layout would have been the same of the source layout. We now just support
tuples of zero-copy identical types up to size 12, andTypeHash
for generic
tuples up to size 12 to help with the idiomPhantomData<(T, U)>
. For the
other cases, it is necessary to create arepr(C)
tuple newtype. Note that up
to ε-serde 0.7.0 we provided an erroneous implementation for mixed zero-copy
types. If you serialized a structure using such a tuple, it will be no longer
deserializable. -
You can now serialize exact-size iterators that will be deserialized as
vectors, making it possible to save incrementally structures larger
than the available memory.