We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
use serde::{Deserialize, Serialize}; #[derive(Debug, Deserialize, Serialize)] struct U64Test { value: u64, } fn main() { let text = toml::to_string(&U64Test { value: u64::MAX }).unwrap(); println!("{text}"); let _: U64Test = toml::from_str(&text).unwrap(); }
cargo run: value = 18446744073709551615
thread 'main' panicked at 'called Result::unwrap() on an Err value: Error { inner: ErrorInner { kind: NumberInvalid, line: Some(0), col: 8, at: Some(8), message: "", key: [] } }', src\main.rs:11:44
Result::unwrap()
Err
The text was updated successfully, but these errors were encountered:
test(edit): Verify min/max roundtripping
249f522
This is to ensure toml-rs#438 doesn't apply to `toml_edit`s parser and generator. The parser already had unit tests for this but not the generator.
57714d3
#442 verified that toml_edit does not have this problem and #457 moved toml to use toml_edit. I'm going to close this as fixed.
toml_edit
toml
Sorry, something went wrong.
No branches or pull requests
cargo run:
value = 18446744073709551615
thread 'main' panicked at 'called
Result::unwrap()
on anErr
value: Error { inner: ErrorInner { kind: NumberInvalid, line: Some(0), col: 8, at: Some(8), message: "", key: [] } }', src\main.rs:11:44The text was updated successfully, but these errors were encountered: