{"repo":"ron-rs/ron","free":true,"listed":false,"github":"https://github.com/ron-rs/ron","clone":"git clone https://github.com/ron-rs/ron.git","description":"Rusty Object Notation","language":"Rust","stars":3995,"topics":["rust","configs","serialization","data-format","serde"],"license":"Apache-2.0","category":"dev-tools","readme_excerpt":"Rusty Object Notation RON is a simple readable data serialization format that looks similar to Rust syntax. It's designed to support all of Serde's data model, so structs, enums, tuples, arrays, generic maps, ranges, and primitive values. Example RON syntax overview Numbers: 42 , 3.14 , 0xFF , 0b0110 Strings: \"Hello\" , \"with\\\\escapes\\n\" , r#\"raw string, great for regex\\.\"# Byte Strings: b\"Hello\" , b\"with \\x65\\x73\\x63\\x61\\x70\\x65\\x73\\n\" , br#\"raw, too\"# Booleans: true , false Chars: 'e' , '\\n' Optionals: Some(\"string\") , Some(Some(1.34)) , None Tuples: (\"abc\", 1.23, true) , () Lists: [\"abc\", \"def\"] Structs: ( foo: 1.0, bar: ( baz: \"I'm nested\" ) ) Maps: { \"arbitrary\": \"keys\", \"are\": \"allowed\" } Ranges: 3..5 , -2.1..=7.3 , ..-15 , ..10.5 , ..=13 , .. Note: Serde's data model represents fixed-size Rust arrays as tuple (instead of as list) RON also supports several extensions, which are documented here. Specification RON's formal and complete grammar is available here. There also is a very basic, work in progress specification available on the wiki page. Why RON? Example in JSON Same example in RON Note the following advantages of RON over JSON: trailing commas allowed single- and multi-line comments field names aren't quoted, so it's less verbose optional struct names improve readability enums are supported (and less verbose than their JSON representation) Quickstart Cargo.toml main.rs Tooling Editor Plugin -------------- ---------------------------------------------------------","default_branch":null,"files":null,"tree":[],"storefront":"/r/ron-rs","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/ron-rs/ron/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}