rust-ini 0.5.0

An Ini configuration file parsing library in Rust
Documentation

Ini parser for Rust

use ini::Ini;

let mut conf = Ini::new();
conf.begin_section("User")
   .set("name", "Raspberry树莓")
   .set("value", "Pi")
   .end_section();
conf.begin_section("Library")
    .set("name", "Sun Yat-sen U")
   .set("location", "Guangzhou=world")
   .end_section();
conf.write_to_file("conf.ini").unwrap();


let i = Ini::load_from_file("conf.ini").unwrap();
for (sec, prop) in i.iter() {
   println!("Section: {}", *sec);
   for (k, v) in prop.iter() {
       println!("{}:{}", *k, *v);
   }
}