edres
If serde
turns your structs into markup files,
then edres
turns your markup files into structs.
Usage
If you want to use this crate in a build.rs
file (as opposed to inside a proc macro), it needs to be added to [build-dependencies]
.
[]
= "0.6"
= ["toml"]
By default, edres
is markup-language-agnostic, so include the relevant feature for whatever language your config file is written in. Choices are:
json
toml
yaml
See the docs for examples of how to use this crate.