toml
toml copied to clipboard
Rust TOML Parser
Hi, I can't seem to deserialize an enum containing a tuple-like value. ( `Heal` variant below). ```rust #[derive(Clone, Copy, Debug, Deserialize)] pub enum ActionKind { Descend, Heal(u32) } #[derive(Component, Deserialize)]...
I don't know too much about macros, so perhaps this is too noisy a change, but this simply allows calling `toml::toml!{}` without anything inside it, creating a blank `toml::Value::Table`. In...
Hello, I would like a function that would allow me to insert a key at a specified ordinal in a `TableLike`. I have a program that accepts a config file...
Consider the following inexistant `patch."ssh://foo.bar"` table, that I'd like to fill with a `my_crate` entry: ```rust fn main() { let mut x = toml_edit::DocumentMut::new(); let patch = &mut x["patch"]["ssh://foo.bar"]; assert!(patch.is_none());...
Hello, I'm sorry if this question has been answered already, but I couldn't find enough information both in the documentation of `toml::Spanned` or looking through the opened and closed issues...
This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [toml_old](https://togithub.com/toml-rs/toml) | dev-dependencies | minor | `0.5.10` -> `0.8.0` | --- ### Release...
I was performing a safety review of this crate and found the existing string comments a bit hard to follow. In particular, a lot of them refer to functions outside...
### Description Having more flexible ways to instantiate `Decor` could be a good thing. I think it's handy to partially instantiate `Decor` with either the prefix or the suffix. ###...
## Example ```rs use toml_edit::*; let mut document = DocumentMut::new(); document.decor_mut().set_prefix("# HEADER\n"); document.decor_mut().set_prefix("# FOOTER\n"); println!("{document}"); document.as_table_mut().insert("key", value("value")); println!("{document}"); ``` ## Expected ``` # HEADER # FOOTER # HEADER key =...