{"id":60890,"library":"tomlplusplus","title":"toml++","description":"Header-only TOML config file parser and serializer for modern C++.","status":"active","version":"3.4.0","language":"cpp","source_language":null,"source_url":null,"tags":["toml","config","parser","serializer","header-only"],"install":[{"cmd":"vcpkg install tomlplusplus","lang":"bash","label":"vcpkg"},{"cmd":"# CMakeLists.txt\nfind_package(tomlplusplus CONFIG REQUIRED)\ntarget_link_libraries(main PRIVATE tomlplusplus::tomlplusplus)","lang":"cmake","label":"CMake"}],"dependencies":[],"imports":[{"symbol":"toml++/toml.h","correct":"#include <toml++/toml.h>"}],"quickstart":{"code":"#include <toml++/toml.h>\n#include <iostream>\n\nint main() {\n    auto config = toml::parse_file(\"config.toml\");\n    std::string_view title = config[\"title\"].value_or(\"default\");\n    std::cout << \"Title: \" << title << std::endl;\n    return 0;\n}","lang":"cpp","description":"Parse a TOML file and read a value"},"warnings":[{"fix":"Ensure you have C++17 or later; include the header directly.","message":"Header-only library; no linking required but may increase compile times.","severity":"gotcha","affected_versions":">=3.0.0"}],"env_vars":null,"search_vec":"'c':13 'config':6,15 'file':7 'header':3,19 'header-on':2,18 'modern':12 'parser':8,16 'serial':10,17 'toml':1,5,14","created_at":"2026-06-17T04:31:19.823669+00:00","updated_at":"2026-06-17T04:31:19.823669+00:00","problems":[],"ecosystem":"vcpkg","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":null,"github":null,"docs":null,"changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["config"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-17","next_check":"2026-12-14","install_tag":null}}