tini
tini copied to clipboard
tiny ini parsing library in rust
As described in this wiki article: https://en.wikipedia.org/wiki/INI_file#Sections > Keys may, but need not, be grouped into arbitrarily named sections I want to create an ini file that resembles something like...
Ini structure must support ### variable comment character ```rust let ini = Ini::new() .set_comment_symbol('#') .add_comment("comment line") .section("demo") .item("a", 1); ``` generate (after serialization) ```text # comment line [demo] a =...
This code (example syntax) ```rust let ini = Ini::new() .add_comment("This is comment before section") .section("params") .add_comment("This is comment before item") .item("foo", 3.14) .item_with_comment("bar", 2.71, "inline comment"); ``` generate (after serialization)...