| Crates.io | homl |
| lib.rs | homl |
| version | 0.1.4 |
| created_at | 2025-01-07 13:45:45.809666+00 |
| updated_at | 2025-01-08 18:08:41.165221+00 |
| description | Best and worst toml parser 😎 |
| homepage | |
| repository | https://gitlab.com/gedon76/homl-rs |
| max_upload_size | |
| id | 1507088 |
| size | 14,955 |
HOML ((H)uyevi T(OML)) is a lightweight, minimalist library for parsing TOML files in C/C++ Rust. It's so simple it can't even parse tables!
1. Copy homl.c and homl.h into your C/C++ project
2. Include homl.h in your file(s)
3. Add homl.c to your Makefile/CMakeLists.txt
4. Done! Now you can use HOML! (God forbid)
cargo add homl- Check the homl.h file, it's basically a documentation
- See the hello world example if you can learn only by looking at code
- If you still don't understand anything, watch this
let file = Toml::parse("yourfilename.ext").unwrap();
let variable = file.get_string("variable").unwrap();
println!("{variable}"); // .unwrap()