jamesmunns / postcard

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

Deserializer::deserialize_struct is incorrect #114

Open Mingun opened 8 months ago

Mingun commented 8 months ago

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

jamesmunns commented 8 months 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.