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
If this feature flag is disabled, then all keys are double quoted, otherwise they aren't (unless necessary).
Code to reproduce:
use serde::Serialize; use std::collections::BTreeMap; #[derive(Serialize)] struct Example { name: String, extra: BTreeMap<String, u8>, } fn main() { let example = Example { name: "Example".into(), extra: (0..3) .map(|i| (format!("{}", (b'a' + i) as char), i)) .collect(), }; println!("{}", toml::to_string_pretty(&example).unwrap()); }
Output with default-features = false, features = ["display"]:
default-features = false, features = ["display"]
"name" = "Example" ["extra"] "a" = 0 "b" = 1 "c" = 2
Output with default features:
name = "Example" [extra] a = 0 b = 1 c = 2
The text was updated successfully, but these errors were encountered:
No branches or pull requests
If this feature flag is disabled, then all keys are double quoted, otherwise they aren't (unless necessary).
Code to reproduce:
Output with
default-features = false, features = ["display"]
:Output with default features:
The text was updated successfully, but these errors were encountered: