toml
toml copied to clipboard
Rust TOML Parser
With #187, we dropped most of our date validation, like 2021-02-31 now works. Looks like chrono has some [pretty complex lookup logic](https://github.com/chronotope/chrono/blob/main/src/naive/internals.rs) to prevent that [Playground of it erroring](https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=7e544d4824015e502916e9a855107395)
Right now, our iterators are type aliases. Some iterators have their implementation partially hidden via `Box` but that still gets exposed. We should provide newtypes for our iterators so we...
Would be nice if there was an easier way to remove items from an array than having to remove via position.
```toml hello.world = "a" goodbye = "b" hello.moon = "c" ``` gets turned into ```toml hello.world = "a" hello.moon = "c" goodbye = "b" ```
Fixes #163
In the past I've written a bootloader which uses TOML as the format for the configuration file format. The UEFI targets (`i686-unknown-uefi` and `x86_64-unknown-uefi`) provide `core` and `alloc` (among others),...
## Context https://github.com/toml-rs/toml-rs/issues/225 was filed to request externally tagged enum support, which was mostly implemented in https://github.com/toml-rs/toml-rs/pull/264. However, https://github.com/toml-rs/toml-rs/pull/264 didn't have complete support for enums in dotted tables. The PR...
```rust use serde::Serialize; use toml; #[derive(Serialize)] struct Outer { v1: Vec, v2: Vec, } #[derive(Serialize)] struct Inner {} fn main() { let outer = Outer { v1: vec![Inner {}], v2:...
For example the following code I just want to parse the hashmap: `let v:HashMap = toml::from_str(r#"{biz= "b1", type= "t1"}")`
The `toml` crate originally had lower (implicit) MSRV. Would it be possible to lower it back to at least 1.48?