-
Notifications
You must be signed in to change notification settings - Fork 123
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
serde rename with '@' as first letter lead to broken serialization #532
Comments
Additional notes: deserialization did not work in |
I'll start with my technical answer: This breakage is expected. Before v0.8.0, RON's grammar (https://github.com/ron-rs/ron/blob/master/docs/grammar.md#identifier) did not allow How big of a problem is this more strict parsing? If the breakage is with a large userbase we could work around it (e.g. by adding an unchecked identifier feature which turns off the checks but leaves you open to breaking serialise-deserialise roundtrips), otherwise I'd rather stick to the checks since they stick to the grammar that existed already before. |
Thank you for detailed answer. I just noticed this inconsistence because I used I think that it will be enough to mention serde/rename limitation in the list of other limitations. |
This code breaks with
InvalidIdentifier("@sender")
error:Result:
Expected result:
Looks like it is a regression: everything worked as expected in
0.7.1
but stopped working in0.8.0
The text was updated successfully, but these errors were encountered: