jamesmunns / postcard

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

Failing to deserialize #79

Open XBagon opened 2 years ago

XBagon commented 2 years ago

Hey, currently struggling with deserializing just serialized structs again. Sadly not getting much info for why, just getting an Serde Deserialization Error. This is the implementation of my test: https://github.com/XBagon/gears/blob/egg/gears_core/src/gear_file.rs#L84 I feel like my struct isn't that complicated and I haven't done any manual Ser/De implemenations, so I'm struggling to even find a start where to debug :P.

Probably a whole test suite of just serializing and directly deserializing some example structs - maybe some of popular structs to catch stuff like #77 - would make sense for a crate like this?

iFreilicht commented 2 years ago

Agreed, some rountrip tests could be very beneficial.