9 unstable releases (3 breaking)
0.4.2 | Aug 31, 2023 |
---|---|
0.4.1 | Aug 31, 2023 |
0.4.0 | Jul 19, 2023 |
0.3.0 | Jul 14, 2023 |
0.1.5 | Jun 22, 2023 |
#2985 in Parser implementations
125 downloads per month
26KB
233 lines
serde_rw
A library to extend serde serializers and deserializers with the ability to read / write different file formats from / to files.
Usage
- To read from files, this crate provides the trait
FromFile
. - To write to files, this crate provides the trait
ToFile
.
Default implementations
FromFile
is auto-implemented forserde::Deserialize
.ToFile
is auto-implemented forserde::Serialize
.
File formats
Currently, the following file formats are supported:
JSON
via thejson
feature.TOML
via thetoml
feature.XML
via thexml
feature.YAML
via theyaml
feature.
Credits
This library is inspired by from_file
by Shane Osbourne.
Dependencies
~0.4–1.8MB
~38K SLoC