Skip to content
/ serde_rw Public

A library to extend serde serializers and deserializers with the ability to read / write different file formats from / to files.

License

Notifications You must be signed in to change notification settings

conqp/serde_rw

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

86 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

A library to extend serde serializers and deserializers with the ability to read / write different file formats from / to files.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages