toml icon indicating copy to clipboard operation
toml copied to clipboard

Rust TOML Parser

Results 98 toml issues
Sort by recently updated
recently updated
newest added

one thing I found surprising while working with `toml_edit` after using `toml`, is that `Item` doesn't implement `From`, in contrast with `toml::Value` which does have equivalent `From` implementations. this makes...

C-enhancement
A-edit

I am trying to push a specific table to the top in the array, but unable to do so. Example code: ```rust fn push_to_top(array: &mut ArrayOfTables, index: usize) { let...

C-bug
M-breaking-change
A-edit

If this feature flag is disabled, then all keys are double quoted, otherwise they aren't (unless necessary). Code to reproduce: ```rust use serde::Serialize; use std::collections::BTreeMap; #[derive(Serialize)] struct Example { name:...

I'm using `Spanned` to deserialize TOML to Nickel (a configuration language) while preserving spans as much as possible, as Nickel adds validation capabilities and we'd like to link back validation...

C-enhancement
A-serde

````rust #[test] fn fuzzed_42537130() { let data = r#" [_.s.K] [_] s.0.0=2 [_.s.0.1] [_.s] "#; let doc = data.parse::().unwrap(); let toml = doc.to_string(); let doc = toml.parse::(); assert!( doc.is_ok(), "parse...

C-bug
A-output
A-edit

The following code simply discards the last write to the `tests` sub-key. ```rust use toml_edit::{DocumentMut, value}; fn main() { let toml = ""; let mut doc = toml.parse::().expect("invalid doc"); //...

C-bug
M-breaking-change
A-edit

Hello, I'm trying to write and load a string with newlines and tabs with toml, and I'm seeing some strange behavior with CR and HT, though this might be the...

C-enhancement
M-breaking-change
A-output

While working on a library to access TOML data via a "TOML path" like `foo[1].bar`, similar to [toml-cli](https://github.com/gnprice/toml-cli), we found convenient to reuse the `Key` struct. At the same time,...

C-enhancement
A-output