You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 9, 2023. It is now read-only.
In dtolnay/serde-yaml#94 I would like to move serde-yaml off of yaml-rust as a YAML backend and to a much simpler backend with support for a minimum viable subset of YAML syntax.
I think the minimal API for this would be:
pubenumYaml<'a>{// strings, booleans, numbers, nulls, all treated the sameScalar(&'astr),// flow style like `[x, x, x]`// or block style like:// - x// - xSequence(Vec<Yaml<'a>>),// flow style like `{x: X, x: X}`// or block style like:// x: X// x: XMapping(Vec<Entry<'a>>),}pubstructEntry<'a>{key:Yaml<'a>,value:Yaml<'a>,}pubfnparse<'a>(input:&'astr) -> Result<Yaml<'a>>;
The long tail of seldom used YAML features need not be supported. That means no tags, anchors, aliases, countless distinct string types, ...