Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upDeserialisation of PathBuf doesn't work #53
Closed
Comments
|
The main issue is that Bincode was built for rustc-serialize, and there are some serde idioms that don't translate well. The SyntaxError (updated to show useful information in c778cda) is hitting one of the things that bincode can't do. Namely that Bincode does not support Deserializer::visit. However, PathBuf probably shouldn't require the kind of hinting that Deserializer::visit uses. Resolutions:
|
|
This was fixed upstream in serde! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Deserialising a simple struct with a
PathBufinside fails with the error:SyntaxErrorCan be reproduced by this Gist:
https://gist.github.com/neon64/03230cb40ff3bafed8ee#file-bincode_pathbuf-rs
It seems like it is just limited to bincode, as serde_json works for example.