gerbil-ini 0.1.0

Simple no-std compatible ini parser
Documentation
  • Coverage
  • 35%
    7 out of 20 items documented1 out of 1 items with examples
  • Size
  • Source code size: 9.24 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 994.69 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 6s Average build duration of successful builds.
  • all releases: 9s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • SnowyMouse
gerbil-ini-0.1.0 has been yanked.

gerbil-ini

Simple no-std compatible .ini parsing library.

Example usage

use gerbil_ini::{Ini, IniMode};

let some_ini = r#"
; This is a comment.

[My Section]
; Here's a value
some KEY=This is a value!

; Here's another value
anotherkey=This is yet another value!

;commented out=this value isn't real :(

[Another Section]
yourkey=This is a value!
some KEY=This, too, is a value!
anotherkey=//Wow Look At Me I'm A Value\\
"#;

let ini = Ini::parse(some_ini, IniMode::Simple).expect("parse");
let section = ini.get_section("My Section").unwrap();
assert_eq!(section.get("some KEY"), Some("This is a value!"));