2025-12-18 14:17:16 +00:00
2025-04-23 18:58:15 +01:00
ffs
2023-12-03 23:20:25 +00:00
2023-12-03 10:11:58 +00:00
2025-12-18 14:25:14 +00:00
2023-12-03 05:13:50 +00:00
2021-10-25 23:21:48 -07:00
2025-04-23 18:58:15 +01:00
2025-12-18 14:17:16 +00:00
2025-12-18 14:17:16 +00:00
2025-04-23 18:58:15 +01:00
2025-12-18 14:17:16 +00:00
2025-04-23 18:58:15 +01:00

C library for parsing TOML 1.1. Passes all of TOML test suite.

This is a fork of https://github.com/cktan/tomlc99, as that didn't seem hugely maintained, and has a number of errors. This library isn't compatible.

Installation

This can be used in two ways: as a library or in "header only mode":

  • "Header only mode" is to make it a bit easier to include this in a project: just copy header/toml-c.h to your project and #include <toml-c.h> and you're done – nothing else needed.

    It's essentially just "cat toml.h toml.c > toml-c.h" with a bit of frobbing.

  • For "library mode" build libtoml.so.1.0 and libtoml.a by just typing make.

Usage

See toml.h and the example directory.

Testing

Run make check to run the tests; this requires toml-test to be in $PATH.

S
Description
Lustro github.com/arp242/toml-c
Readme MIT
404 KiB
Languages
C 94.5%
Makefile 2.9%
Shell 2.6%