Releases: vigna/epserde-rs
0.8.0
[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.
0.7.0
0.6.3
0.6.2
[0.6.2] - 2025-02-07
Improved
- Added missing implementation of
TypeHash
,ReprHash
,MaxSizeOf
,
SerializeInner
,DeserializeInner
forRange
,RangeFrom
,RangeFull
,
RangeInclusive
,RangeTo
,RangeToInclusive
,Bound
,ControlFlow
.
Fixed
- The return type of
Deserialize::load_full
is how ananyhow::Result
,
analogously to the otherload
functions.
0.6.1
0.6.0
[0.6.0] - 2024-06-03
Changed
- Updated MemDbg to 0.2.1.
Fixed
-
Added const generic parameters values and names to type hash. Note that
this change will invalidate type hashes for structures with generic
constants. -
Fixed handling of zero-sized zero-copy structs eps_deserialization.