edres

Crates.ioedres
lib.rsedres
version0.6.0
sourcesrc
created_at2020-12-01 13:14:53.072007
updated_at2022-10-20 17:36:27.430698
descriptionGenerate struct and enum definitions from data files.
homepagehttps://github.com/mistodon/edres
repositoryhttps://github.com/mistodon/edres
max_upload_size
id318569
size20,420
Vi (mistodon)

documentation

README

edres

If serde turns your structs into markup files,

then edres turns your markup files into structs.

CI Docs.rs Crates.io codecov

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].

[build-dependencies.edres]
version = "0.6"
features = ["toml"]

By default, edres is markup-language-agnostic, so include the relevant feature for whatever language your config file is written in. Choices are:

  1. json
  2. toml
  3. yaml

See the docs for examples of how to use this crate.

Commit count: 142

cargo fmt