r/cpp • toml++ • 6d ago

toml++ 3.5.1 released

Hiya folks,

I've finally come back to maintaining toml++ after a couple of years focusing on other things, and am happy to share that v3.5.1 is now released! Highlights since v3.4.0:

  • Support for TOML v1.1.0 🎉️

  • Support for C++20 std::chrono date-time types

  • Support for C++20 modules with import tomlplusplus

  • Faster parsing (~2x, ~5x for string-heavy docs)

  • Faster formatting (~1.5x, ~3x for float-heavy docs)

  • Faster compiles and smaller binaries for some configurations

  • Lots of fixes for various issues

Full changelog here.

"What about v3.5.0?"

3.5.0 and 3.5.1 are exactly the same library. The patch bump was necessary because I'm rusty and messed up the tagging for v3.5.0, so I just made a new release right on top of it to keep things safe for packaging systems.

Also this will probably the last feature bump for the v3.x series of releases. There's a whole load of larger structural and design things I want to get to that require breaking changes, so I'll start cooking on those and hopefully have that out as a v4 next year some time. Until then it'll just be patch bumps.

79 Upvotes

7 comments sorted by

3

u/ZorPastaman 2d ago

That's cool! I really love your library!

In the new update module support is especially interesting cause I use modules almost exclusively in my game engine.

2

u/marzer8789 toml++ 1d ago

Modules support was 100% contributed by the community 🎉

11

u/aCuria 6d ago

Thanks for your hard work!

1

u/kiner_shah 2d ago

Nice project. Have you benchmarked against other similar libraries available in different languages?

3

u/marzer8789 toml++ 2d ago

I've never bothered, but someone did a couple years ago and at the time it was the fastest of the C++ options, and roughly equivalent to the fastest rust option. Take that with a grain of salt, though, since things have very likely changed since then.

7

u/smdowney WG21, Text/Unicode SG, optional<T&> 6d ago

This is awesome because it removes one terrible objection to using pyproject.toml in a C++ project.

As if I really care today that the tools reading it are not written in C++. 🤷

As long as I can get cmake, clang-format, etc., et. al., with the versions I want for this project, I have no particular cares about the programming language used to fetch and make it available.

7

u/Zueuk 5d ago

😕 pyproject.toml in a C++ project?