cpptoml
brew install cpptoml
v0.1.1_1
MIT
Header-only library for parsing TOML
154
30-day installs · #2910
490
90-day · #2908
2.3k
365-day · #2675
605
★ GitHub stars · updated 2y ago
Build dependencies
Links
- https://github.com/skystrife/cpptoml
- GitHub: skystrife/cpptoml
- Brew formula source: Formula/c/cpptoml.rb
Raw metadata
{
"aliases": [],
"alternatives": [],
"build_dependencies": [
"cmake"
],
"categories": [],
"caveats": null,
"conflicts_with": [],
"dependencies": [],
"deprecated": 0,
"deprecation_reason": null,
"desc": "Header-only library for parsing TOML",
"disable_reason": null,
"disabled": 0,
"enrichment_fetched_at": "2026-06-20T23:36:39+00:00",
"first_seen": "2026-06-20T23:34:18+00:00",
"full_name": "cpptoml",
"github_default_branch": "master",
"github_last_commit_at": "2023-10-07T16:28:09Z",
"github_readme_excerpt": "# cpptoml\nA header-only library for parsing [TOML][toml] configuration files.\n\nTargets: [TOML v0.5.0][currver] as of August 2018.\n\nThis includes support for the new DateTime format, inline tables,\nmulti-line basic and raw strings, digit separators, hexadecimal integers,\noctal integers, binary integers, and float special values.\n\nAlternatives:\n- [Boost.toml][boost.toml] is a C++ implementation of a TOML parser using\n the Boost library. As of writing, it supports v0.5.0 as well.\n- [ctoml][ctoml] is a C++11 implementation of a TOML parser, but only\n supports v0.2.0.\n- [libtoml][libtoml] is a C implementation of a TOML parser, which can be\n linked to from your C++ programs easily. As of April 2016, it supports\n v0.4.0.\n- [tinytoml][tinytoml] is a C++11 implementation of a TOML parser, which\n also supports v0.4.0 as of November 2015.\n\n## Build Status\n[](https://travis-ci.org/skystrife/cpptoml)\n\n## Test Results\n\nFrom [the toml-test suite][toml-test]:\n\n```\n126 passed, 0 failed\n```\n\nWe also currently maintain (but hopefully not indefinitely!) a [fork of the\ntoml-test suite][toml-test-fork] that adds tests for features and\nclarifications that have been added to the TOML spec more recently than\ntoml-test has been updated. We pass every test there.\n\n```\n148 passed, 0 failed\n```\n\n# Compilation\nRequires a well conforming C++11 compiler. On OSX this means clang++ with\nlibc++ and libc++abi (the default clang installed with XCode\u0027s command line\ntools is sufficient).\n\nOn Linux, you should be able to use g++ \u003e= 4.8.x, or clang++ with libc++\nand libc++abi (if your package manager supplies this; most don\u0027t).\n\nCompiling the examples can be done with cmake:\n\n```\nmkdir build\ncd build\ncmake ../\nmake\n```\n\n# Example Usage\nTo parse a configuration file from a file, you can do the following:\n\n```cpp\nauto config = cpptoml::parse_file(\"config.toml\");\n```\n\n`parse_file()` returns a (shared pointer to a) `cpptoml::table`",
"github_repo": "skystrife/cpptoml",
"github_stars": 605,
"github_topics": [],
"homepage": "https://github.com/skystrife/cpptoml",
"homepage_og_description": null,
"homepage_og_image": null,
"homepage_title": null,
"installs_30d": 154,
"installs_365d": 2310,
"installs_90d": 490,
"keg_only": 0,
"keg_only_reason": null,
"last_seen": "2026-06-20T23:34:18+00:00",
"license": "MIT",
"llm_generated_at": null,
"llm_model": null,
"name": "cpptoml",
"oldnames": [],
"one_liner": null,
"optional_dependencies": [],
"rank_30d": 2910,
"rank_365d": 2675,
"rank_90d": 2908,
"raw_hash": "61d217a1fd69c5b8",
"recommended_dependencies": [],
"revision": 1,
"ruby_source_path": "Formula/c/cpptoml.rb",
"tap": "homebrew/core",
"test_dependencies": [],
"uses_from_macos": [],
"version_head": "HEAD",
"version_stable": "0.1.1",
"versioned_formulae": [],
"why_use_this": null
}