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
DRY: The `json`, `json5` and `toml` parsers all leverage `serde` and can share a common enum to deserialize data into, instead of individual methods performing roughly the same transformations.
- While `ron` improves their support for serde untagged enums with v0.9, it is still not compatible with this approach (_Their README details why_).
- The `yaml` support doesn't leverage `serde` thus is not compatible.
The new common method is based on the `json5` technique.
- It has been adjusted to reflect the `ValueKind` enum, which could not directly be used due to the `Table` and `Array` types using `Value` as their value storage type instead of self-referencing the enum.
- Very similar to a `impl From`, but supports the complimentary `uri` parameter for each `Value` derived.
Signed-off-by: Brennan Kinney <[email protected]>
0 commit comments