3 releases
0.1.4 | Jan 8, 2025 |
---|---|
0.1.3 | Jan 8, 2025 |
0.1.2 | Jan 7, 2025 |
0.1.1 |
|
0.1.0 |
|
#1584 in Parser implementations
344 downloads per month
15KB
321 lines
HOML
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!
Features
- Very small
- Easy to integrate into any
C/C++Rust project (if you know crates.io, it's probably truth) - Minimal dependencies (truth)
- Built for absolute gigachads who laugh at
TOML-C99TOML (truth) - Licensed under WTFPL! Isn't that cool?
Installation
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
- pray
Usage
- 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()
Okay now, why should I use it?
- You want to be cool and flex, don't you?
- first
- second
Pro Tip
- use keyboard to write code