eon_syntax 0.2.0

Describes the syntax of the Eon config format, with parsing and pretty-printing
Documentation
  • Coverage
  • 79.17%
    38 out of 48 items documented0 out of 1 items with examples
  • Size
  • Source code size: 64.25 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 3.65 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 13s Average build duration of successful builds.
  • all releases: 13s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • emilk/eon
    169 10 3
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • emilk

Eon: the human-friendly configuration format

Eon is a configuration format that is designed to be familiar, clean, and powerful.

Example Eon document:

// Comment
string: "Hello Eon!"
list: [1, 2, 3]
object: {
    boolean: true
    regex: '\d{3}-\d{3}-\d{4}'
}
map: {
    1: "map keys don't need to be strings"
    2: "they can be any Eon value"
}
special_floats: [+inf, -inf, +nan]

Read more about Eon at https://github.com/emilk/eon.

This crate provides a parser and formatter for Eon. It is used to implement the eonfmt formatter tool, but also used by the eon crate to parse and format Eon documents.

You can use it to read and write Eon documents, with comments. This can be useful for e.g. reading "docstrings" from an .eon file, or for automate the editing an .eon file while preserving comments and formatting.