jamesmunns / postcard

A no_std + serde compatible message library for Rust
Apache License 2.0
923 stars 88 forks source link

Deserializer::deserialize_struct is incorrect #114

Open Mingun opened 1 year ago

Mingun commented 1 year ago

During investigation of correct serde deserializers behavior I found, that postcard implements struct deserialization incorrectly:

jamesmunns commented 1 year ago

This is potentially correct, though postcard generally doesn't support many of the serde attributes such as alias, external tagging, etc.

If there is a better way to handle this if we'd like to disregard these attributes, I'm defintiely interested!

Thanks for the report.