📦 Information
For my rust programs I was using various serde/toml crates for parsing (what ultimately only were) simple configuration files, and at some point I decided that it was unnecessary.
Tommy is dumb, blunt and clunky. It's built for parsing simple configuration files containing tables of integers, strings, chars, floats and booleans - it can't do anything more and it doesn't need to do anything more.
✨ Usage
use *;
config_table!;
config_table!;
config_table!;
let parsed_user = from_file.unwrap;
let parsed_fabk = from_file.unwrap;
/// # or instead of using macro
/// let cursor_conf: Cursor = parsed_user
/// .table("cursor")
/// .or_else(|| parsed_fabk.table("cursor"))
/// .unwrap();
load_conf!;
load_conf!;
load_conf!;
println!;
println!;
println!;
}
📜 License
This project is licensed under the MIT License.