tomlplusplus/3.4.0

Header-only TOML config file parser and serializer for modern C++.
Recipe info
2023-10-16

Available packages
Header Only

Install
Add the following line to your conanfile.txt:
[requires]
tomlplusplus/3.4.0

Using tomlplusplus

Note

If you are a new Conan user, we recommend reading the how to consume packages tutorial.

If you need additional assistance, please ask a question in the Conan Center Index repository.

Simplest use case consuming this recipe and assuming CMake as your local build tool:

[requires]
tomlplusplus/3.4.0
[generators]
CMakeDeps
CMakeToolchain
[layout]
cmake_layout
from conan import ConanFile
from conan.tools.cmake import cmake_layout


class ExampleRecipe(ConanFile):
    settings = "os", "compiler", "build_type", "arch"
    generators = "CMakeDeps", "CMakeToolchain"

    def requirements(self):
        self.requires("tomlplusplus/3.4.0")

    def layout(self):
        cmake_layout(self)

Now, you can run this Conan command to locally install (and build if necessary) this recipe and its dependencies (if any):

$ conan install conanfile.txt --build=missing

Useful information to take into account to consume this library:


These are the main declared targets:

  • CMake package name(s): tomlplusplus
  • CMake target name(s): tomlplusplus::tomlplusplus
  • pkg-config file name(s): tomlplusplus.pc

A simple use case using the CMake file name and the global target:

# ...
find_package(tomlplusplus REQUIRED)
# ...
target_link_libraries(YOUR_TARGET tomlplusplus::tomlplusplus)

These are all the available headers. Some of these ones might be non-public; make sure of it by visiting the tomlplusplus homepage listed above:

#include "toml++/impl/array.hpp"
#include "toml++/impl/array.inl"
#include "toml++/impl/at_path.hpp"
#include "toml++/impl/at_path.inl"
#include "toml++/impl/date_time.hpp"
#include "toml++/impl/formatter.hpp"
#include "toml++/impl/formatter.inl"
#include "toml++/impl/forward_declarations.hpp"
#include "toml++/impl/header_end.hpp"
#include "toml++/impl/header_start.hpp"
#include "toml++/impl/json_formatter.hpp"
#include "toml++/impl/json_formatter.inl"
#include "toml++/impl/key.hpp"
#include "toml++/impl/make_node.hpp"
#include "toml++/impl/node.hpp"
#include "toml++/impl/node.inl"
#include "toml++/impl/node_view.hpp"
#include "toml++/impl/parse_error.hpp"
#include "toml++/impl/parse_result.hpp"
#include "toml++/impl/parser.hpp"
#include "toml++/impl/parser.inl"
#include "toml++/impl/path.hpp"
#include "toml++/impl/path.inl"
#include "toml++/impl/preprocessor.hpp"
#include "toml++/impl/print_to_stream.hpp"
#include "toml++/impl/print_to_stream.inl"
#include "toml++/impl/simd.hpp"
#include "toml++/impl/source_region.hpp"
#include "toml++/impl/std_except.hpp"
#include "toml++/impl/std_initializer_list.hpp"
#include "toml++/impl/std_map.hpp"
#include "toml++/impl/std_new.hpp"
#include "toml++/impl/std_optional.hpp"
#include "toml++/impl/std_string.hpp"
#include "toml++/impl/std_string.inl"
#include "toml++/impl/std_utility.hpp"
#include "toml++/impl/std_variant.hpp"
#include "toml++/impl/std_vector.hpp"
#include "toml++/impl/table.hpp"
#include "toml++/impl/table.inl"
#include "toml++/impl/toml_formatter.hpp"
#include "toml++/impl/toml_formatter.inl"
#include "toml++/impl/unicode.hpp"
#include "toml++/impl/unicode.inl"
#include "toml++/impl/unicode_autogenerated.hpp"
#include "toml++/impl/value.hpp"
#include "toml++/impl/version.hpp"
#include "toml++/impl/yaml_formatter.hpp"
#include "toml++/impl/yaml_formatter.inl"
#include "toml++/toml.h"
#include "toml++/toml.hpp"
#include "toml.hpp"