serde_rw

Crates.ioserde_rw
lib.rsserde_rw
version0.4.2
sourcesrc
created_at2023-06-22 03:27:28.625617
updated_at2023-08-31 20:30:25.498685
descriptionExtend serde serializers and deserializers with the ability to read / write different file formats from / to files
homepagehttps://github.com/conqp/serde_rw/
repositoryhttps://github.com/conqp/serde_rw/
max_upload_size
id896863
size26,642
Richard Neumann (conqp)

documentation

https://docs.rs/serde_rw

README

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 for serde::Deserialize.
  • ToFile is auto-implemented for serde::Serialize.

File formats

Currently, the following file formats are supported:

  • JSON via the json feature.
  • TOML via the toml feature.
  • XML via the xml feature.
  • YAML via the yaml feature.

Credits

This library is inspired by from_file by Shane Osbourne.

Commit count: 61

cargo fmt