For anything else you're welcome to reach out via other means. Contacting the authorįor bug reports and feature requests please use the Github Issues system. If you're using the single-header version of the library you don't need to explicitly distribute the license file it is embedded in the preamble at the top of the header. Toml++ is licensed under the terms of the MIT license - see LICENSE. If you wish to submit a pull request, please see CONTRIBUTING for all the details you need to get going. See alsoĬontributions are very welcome! Either by reporting issues or submitting pull requests. The full list of configurables can be found on the Library Configuration page. Things like changing the optional type, disabling header-only mode, et cetera. The library exposes a number of configuration options in the form of compiler #defines. Note that I'm not the owner of that project, so if you wish to report a bug relating to the python implementation please do so at their repository, not on the main toml++ one. Install it using pip: pip install pytomlpp There exists a python wrapper library built around toml++ called pytomlpp which is, at the time of writing, one of only two natively-compiled TOML libraries available for python, and thus one of the fastest options available: Parsing data.toml 5000 times: pytomlpp: 0.694 s rtoml: 0.871 s ( 1.25x) tomli: 2.625 s ( 3.78x) toml: 5.642 s ( 8.12x) qtoml: 7.760 s (11.17x) tomlkit: 32.708 s (47.09x) I'm always happy to see new ones supported, though! If there's some integration you'd like to see and have the technical know-how to make it happen, feel free to make a pull request. The C++ tooling ecosystem is a fractal nightmare of unbridled chaos so naturally I'm not up-to-speed with all of the available packaging and integration options. What is FetchContent? Git submodules git submodule add -depth 1 tomlplusplus Other environments and package managers Basic examples Parsing filesĬall toml:: parse_file() and work with the toml:: table you get back, or handle any toml:: parse_error that gets thrown: #include #include int main ( int argc, char \ * \ * argv ) Vcpkg vcpkg install tomlplusplus CMake FetchContent include ( FetchContent ) FetchContent_Declare ( tomlplusplus GIT_REPOSITORY GIT_TAG v3.4.0 ) FetchContent_MakeAvailable ( tomlplusplus ) See also You can search from anywhere by pressing the TAB key. You're looking at it! Browse the docs using the links at the top of the page. Tested on Clang (8+), GCC (8+) and MSVC (VS2019).When you have submodule code that you are modifying and others may be modifying, you have to start working with that specific repo as a regular repo (which it still is) rather than as a submodule. So, if you have changes in a submodule, you don’t want to run git submodule update. experimental support for char8_t strings) git submodule update will always remove any changes you have. C++17 (plus some C++20 features where available, e.g.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |