3 releases

0.1.4 Jan 8, 2025
0.1.3 Jan 8, 2025
0.1.2 Jan 7, 2025
0.1.1 Jan 7, 2025
0.1.0 Jan 7, 2025

#1584 in Parser implementations

Download history 117/week @ 2025-01-01 227/week @ 2025-01-08

344 downloads per month

Custom license

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-C99 TOML (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)

  1. cargo add homl
  2. 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?

  1. You want to be cool and flex, don't you?
  2. first
  3. second

Pro Tip

  1. use keyboard to write code

No runtime deps