-
Notifications
You must be signed in to change notification settings - Fork 109
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
toml
can't parse large u64 numbers
#512
Comments
This is expected behavior. Integers are parsed as We could possibly allow the parser to parse
Without a path forward for this, I'm inclined to mark this as not-planned. Feel free to continue discussion and maybe we find a way to re-open and resolve this one day. |
Thanks for the extra details! I expect an encoding library to be able to properly encode/decode the values I give it, and in particular, be able to decode the values it can encode. Breaking this contract leads to data loss. In order of preference, I'd rather:
The current behavior feels wrong today, so in my opinion this is worth a breaking change |
serde does not let us do compile-time errors for unsupported types. And we are erroring when parsing the unsupported values as demonstrated in this Issue and I just fixed your other Issue so we now error when writing unsupported values. I had considered dropping support for |
Thanks a bunch @epage, both for this issue & the other one! I can confirm the error is thrown as it should, and this alleviates my concerns! 🙏
|
There seems to be a bug with parsing large u64 values, reproducible in Playground.
Code:
Error:
I was also able to reproduce this bug locally on macOS.
Note: I suspect this is a different bug from #511. Feel free to close if you feel like it's a duplicate.
The text was updated successfully, but these errors were encountered: