general_manual/
general_manual.rs

1
2
3
4
5
6
7
8
9
10
use config_tools::Config;

fn main() -> Result<(), config_tools::Error> {
    let config = Config::new()
        .set("host", "127.0.0.1")
        .set("port", "8080")
        .build();

    config.save("config-general-manual.ini")
}