-
-
Notifications
You must be signed in to change notification settings - Fork 277
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problem deserializing tagged enum (serde) #548
Comments
Looks like we have a new entry for the known issue list with serde, where this will just not work with bincode. |
Any explanation on why tags cannot work with bincode? Thanks. |
Its because the serde codegen when using tags calls unsupported methods in bincode. Specifically the |
any solutions to this? |
No, this is a fundamental incompatibility between serde and data formats that do not have metadata |
Hey there, I have the following code:
The deserialize fails with
DeserializeAnyNotSupported
when I have the#[serde(tag="version")]
enabled like above. If i remove it, it does work. Serialize always works and seems to put additional info when tagging is enabled. Couldn't find any hints on how to solve this and this does not seem to be known issue (https://docs.rs/bincode/2.0.0-alpha.1/bincode/serde/index.html#known-issues).The behavior is the same for bincode 2.0.1 and 1.3.3.
The text was updated successfully, but these errors were encountered: