A library to extend serde serializers and deserializers with the ability to read / write different file formats from / to files.
- To read from files, this crate provides the trait
FromFile. - To write to files, this crate provides the trait
ToFile.
FromFileis auto-implemented forserde::Deserialize.ToFileis auto-implemented forserde::Serialize.
Currently, the following file formats are supported:
JSONvia thejsonfeature.TOMLvia thetomlfeature.XMLvia thexmlfeature.YAMLvia theyamlfeature.
This library is inspired by from_file by Shane Osbourne.