Introduction
RON, Rusty Object Notation, is a readable data serialisation format that looks like
Rust syntax. It is used for configuration and other data loaded by Rust programs.
Files use the extension .ron.
Structure
A file is text holding a value. Values include integers, floats, strings, byte
strings, characters, booleans, options, lists, maps, tuples, structs, enum variants
and ranges. Struct names are optional and field names are not quoted. Trailing commas
are allowed, line comments start with // and block comments are written
between /* and */. A file may open with an
#![enable(...)] line that turns on extensions to the syntax.
Not described
This page is a first outline.
Known, not yet covered
- Reference: the full grammar, the escape rules for strings and what each extension changes.
- Viewer: the site has no viewer for this format.
Links
Software
- ron – the Rust library for reading and writing RON
- intellij-ron – editor plugin for IntelliJ
- ron.vim – editor support for Vim
Reference
- RON grammar – the project’s formal grammar
- .RON file extension – FileInfo’s note on the file type