edres

Crates.ioedres
lib.rsedres
version0.7.1
created_at2020-12-01 13:14:53.072007+00
updated_at2025-02-25 21:50:52.304892+00
descriptionGenerate struct and enum definitions from data files.
homepagehttps://github.com/mistodon/edres
repositoryhttps://github.com/mistodon/edres
max_upload_size
id318569
size29,432
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.7"
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: 148

cargo fmt