serde_sono
A serde de-/serializer for the Sono data format.
Example
use Deserialize;
;
SONO language
See https://github.com/xitep/sono
TODOs
- Efficient value skipping / ignoring
- Pretty formatting when serializing
- Generic data model
serde_sono::Value - Documentation
- Measure and tweak performance
Features
-
value: guards the
serde_sono::Valuetype -
lossless-serialize-value-leaking: Implements
serde::Serializeforserde_sono::Valueproducing a lossless presentation of the serialized values at the cost of leaking memory for object names and property keys to support serializes which do retain references to these.The feature is disabled by default and results in objects being serialized as lists and/or maps of their properties.
This feature is an alternative to
lossless-serialize-value-unsafe. -
lossless-serialize-value-unsafe: Implements
serde::Serializeforserde_sono::Valueproducing a lossless presentation of the serialized values by assuming that the used serializer does not retain references to the handed object and property names. (The serializer provided byserde_sono, for example, does not.)The feature is disabled by default and results in objects being serialized as lists and/or maps of their properties.
This feature is an alternative to
lossless-serialize-value-leaking.