Bug#1004498: RFP: toml11 -- C++11 (or later) header-only toml parser/encoder
Package: wnpp
X-Debbugs-Cc: debian-med@lists.debian.org, Michael R. Crusoe <crusoe@debian.org>
Severity: wishlist
* Package name : toml11
Version : 3.7.0
Upstream Author : Copyright (c) 2017-2021 Toru Niina
* URL : https://github.com/ToruNiina/toml11
* License : MIT
Programming Lang: C++
Description : C++11 (or later) header-only toml parser/encoder
toml11 is a C++11 (or later) header-only toml parser/encoder depending only on
C++ standard library.
- It is compatible to the latest version of TOML v1.0.0.
- It is one of the most TOML standard compliant libraries, tested with the language agnostic test suite for TOML parsers by BurntSushi.
- It shows highly informative error messages. You can see the error messages about invalid files at CircleCI.
- It has configurable container. You can use any random-access containers and key-value maps as backend containers.
- It optionally preserves comments without any overhead.
- It has configurable serializer that supports comments, inline tables, literal strings and multiline strings.
- It supports user-defined type conversion from/into toml values.
- It correctly handles UTF-8 sequences, with or without BOM, both on posix and Windows.
This library is a dependency of nix[1] and uncalled[2].
[1] https://tracker.debian.org/pkg/nix
[2] https://tracker.debian.org/pkg/uncalled
I've never packaged a C or C++ library so I'd be grateful for somebody else to
package this. One could look at nlohmann-json3 which is also a C++ header
library.
[3] https://tracker.debian.org/pkg/nlohmann-json3
Reply to: