tommy 0.1.21

Simple toml parser built to parse configuration files for rust projects
Documentation

✨ Examples

#[derive(Debug)]
#[allow(unused)]
struct SomeTable {
string: String,
number: i32,
float: f64,
boolean: bool,
}

from_table_struct!(SomeTable {
string: String,
number: i32,
float: f64,
boolean: bool,
});

let parsed = ParseConfig::from_file("path/to/file.toml".to_string());
let first_table: SomeTable = parsed.table("first_table").unwrap();

📜 License

This project is licensed under the MIT License.