-
Notifications
You must be signed in to change notification settings - Fork 131
Open
Description
From what I can tell, there are currently two ways of preserving span information when deserializing:
- Write a custom type (e.g.
MyTable { table_field: Spanned<String> }
) which usesSpanned
on field types. This will preserve span information at any depth (assuming all of the nested types useSpanned
), but requires deserializing into a specific format. - Deserialize a
Spanned<toml::Value>
. This works with arbitrary input toml, but only preserves the outermost layer of span information (sincetoml::Value
does not track any span information)
It would be very useful if toml::de::DeValue
(and related De*
types) implemented Deserialize
. This would allow deserializing an arbitrary input toml value, while still preserving span information for all nested keys and values.
Metadata
Metadata
Assignees
Labels
No labels