Open jamesmunns opened 10 months ago
I'm going to investigate #122.
FYI I also have deserialization issues when using deserialize_with
.
I made a PoC for the skipping: https://github.com/jamesmunns/postcard/pull/174
It seems that #[serde(skip)]
breaks deserialization, due to discriminant offset
pub enum MyEnum {
A,
#[serde(skip)]
B,
C,
D,
}
In this case deserializing A
would work. But not C
. postcard
would attempt to deserialize C
as D
CC:
122
29
How to handle this?