Skip to content

0.8.0

Latest
Compare
Choose a tag to compare
@vigna vigna released this 03 Mar 19:59
· 3 commits to main since this release

[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, and TypeHash for generic
    tuples up to size 12 to help with the idiom PhantomData<(T, U)>. For the
    other cases, it is necessary to create a repr(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.