tomlplusplus
Header-only TOML config file parser and serializer for C++17. (by marzer)
Magic Enum C++
Static reflection for enums (to string, from string, iteration) for modern C++, work with any enum type without any macro or boilerplate code (by Neargye)
Our great sponsors
tomlplusplus | Magic Enum C++ | |
---|---|---|
23 | 44 | |
1,400 | 4,403 | |
- | - | |
6.4 | 8.1 | |
about 1 month ago | 12 days ago | |
C++ | C++ | |
MIT License | MIT License |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
tomlplusplus
Posts with mentions or reviews of tomlplusplus.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-03-06.
-
how to handle config files in c++?
Unless you want to make your own config file parser as an exercise (which is a good idea) I'd recommend using toml++.
-
Cmake fetchContent not working in a docker container.
It's a public repo - this one: https://github.com/marzer/tomlplusplus but thank you
-
Poxy - a Doxygen frontend - v0.9.0 released
For a live demo, see the toml++ homepage: https://marzer.github.io/tomlplusplus/
-
Preferred way to read in application settings/config in C++
Added bonus, tomlplusplus is a solid C++ implementation, actively updated, and easy to drop into a project (header only, CMake, vcpkg, Conan, etc.). Very easy to use for what I've needed.
-
toml++ v3.2.0 released
Key links: - Homepage: https://marzer.github.io/tomlplusplus/ - Repository: https://github.com/marzer/tomlplusplus - "What is TOML?": https://toml.io/
-
CMake for toml not working
cmake_minimum_required(VERSION 3.23) project(testProj) set(CMAKE_CXX_STANDARD 23) set(FETCHCONTENT_BASE_DIR ${PROJECT_SOURCE_DIR}/${CMAKE_PROJECT_NAME}/libs CACHE PATH "Missing description." FORCE) include(FetchContent) FetchContent_Declare( tomlplusplus GIT_REPOSITORY https://github.com/marzer/tomlplusplus.git GIT_TAG v3.1.0 ) FetchContent_MakeAvailable(tomlplusplus) add_executable(testProj testProj/src/main.cpp) target_link_libraries(testProj tomlplusplus)
- toml++: Header-Only TOML Config File Parser And Serializer For C++
-
What are some use cases of using shared_ptr in a single threaded program?
I use them in toml++ to store the path of the source document for all the data nodes parsed from that document. Storing it as a separate std::string allocation for every single object would have been very wasteful, and the alternative would have been to make an overall document class that owned everything, which I didn't want to do, so shared_ptr was a good compromise.
-
toml++ v3.1.0 released
Key links: - Homepage: https://marzer.github.io/tomlplusplus/ - Repository: https://github.com/marzer/tomlplusplus - "What is TOML?": https://toml.io/
-
What are some projects that taught you a lot?
toml++ was both my first 'public'/open-source project, and my first ever attempt at a parser. There's a few things I'd do differently now if I were to write it from scratch, but I've learned a lot along the way (particularly about making things build 'clean' on multiple platforms).
Magic Enum C++
Posts with mentions or reviews of Magic Enum C++.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-07-08.
-
What C++ library do you wish existed but hasn’t been created yet?
I'm not sure this is quite what you're asking for, but this library has been super helpful to me in the past : https://github.com/Neargye/magic_enum
- Usable Magic Enums for C++
-
Fully Permissive License C++ Logger For Embedded System
Also, a shoutout to Magic Enum: https://github.com/Neargye/magic_enum
- Favorite Ways of Stringifying Enums
-
enum_name (yet another enum to/from string conversion utility >=C++11)
What does this have to offer over magic_enum?
-
quill v2.7.0 released - Asynchronous Low Latency C++ Logging Library
But it's a hack, and I prefer not to use hacks in production, because of their significant limitations:
-
Enums print numbers instead of words
You can either write a to string(view) function for your enum or use https://github.com/Neargye/magic_enum
-
Enums with methods
Why reinvent the wheel? magic_enum
-
Error: Boost bimap can't convert const CompatibleKey to Key&
Also if you want to convert enum members to string representation I suggest you just use magic_enum instead, much smaller dependency.
-
Macro to write enum and converter from and to string
Magic Enum provides that.
What are some alternatives?
When comparing tomlplusplus and Magic Enum C++ you can also consider the following projects:
toml11 - TOML for Modern C++
Nameof C++ - Nameof operator for modern C++, simply obtain the name of a variable, type, function, macro, and enum
toml - Tom's Obvious, Minimal Language
Protobuf - Protocol Buffers - Google's data interchange format
toml - Python lib for TOML
cereal - A C++11 library for serialization
json_test_data - Test data for nlohmann/json
Boost.Serialization - Boost.org serialization module
cmkr - Modern build system based on CMake and TOML.
FlatBuffers - FlatBuffers: Memory Efficient Serialization Library
tree-sitter-html - HTML grammar for Tree-sitter
pfr - std::tuple like methods for user defined types without any macro or boilerplate code
tomlplusplus vs toml11
Magic Enum C++ vs Nameof C++
tomlplusplus vs toml
Magic Enum C++ vs Protobuf
tomlplusplus vs toml
Magic Enum C++ vs cereal
tomlplusplus vs json_test_data
Magic Enum C++ vs Boost.Serialization
tomlplusplus vs cmkr
Magic Enum C++ vs FlatBuffers
tomlplusplus vs tree-sitter-html
Magic Enum C++ vs pfr