minimal-yaml
minimal-yaml copied to clipboard
A minimalist, zero-copy parser for a strict subset of the Yaml specification.
Also removed the custom "Matches" macro, as it has been included in the stable compiler
I am trying to reformat a [openapi 3 yaml file](https://spec.openapis.org/oas/latest.html), by parsing and serialising it again, however it is being managed, only slightly. In the following, I was hoping to...
In order for parse to work with files having Windows line endings (\r\n) I had to replace with \r before parsing.
As [yaml_rust](https://crates.io/crates/yaml-rust) seems unmaintained, I'm considering switching to minimal-yaml. But as a relative newbie to Rust, I have problems figuring out how to access elements in the minimal-yaml representation. With...
The following is not parsed correctly. ``` --- foo: bar: - 1 ``` It is parsed as if it was: ``` --- foo: bar: - 1 ```
Support for https://docs.rs/serde-transcode/1.1.0/serde_transcode/fn.transcode.html
The Display impl for minimal_yaml::Yaml currently renders a map `k: v` as: ```yaml {"k" : "v" } ``` The block style would be more idiomatic for emitting maps. ```yaml k:...