feat: add compat.tomlplusplus 3.4.0 (C++ toml parse library)#64
Open
yspbwx2010 wants to merge 2 commits into
Open
feat: add compat.tomlplusplus 3.4.0 (C++ toml parse library)#64yspbwx2010 wants to merge 2 commits into
yspbwx2010 wants to merge 2 commits into
Conversation
Add toml++ as a C++23 module package (import tomlplusplus).
- Add pkgs/c/compat.tomlplusplus.lua (module wrapper, MIT)
- Add tests/examples/tomlplusplus with import-based test
- Declares modules = { "tomlplusplus" } for import support
- Uses fork's src/modules/tomlplusplus.cppm as source
- SHA256: cefd81c09ae8eade62f254ba0903e4585944cc86e84c320a92116a95cb725862
toml++ is a TOML v1.0.0 config file parser and serializer for C++17+.
Fork: https://github.com/yspbwx2010/tomlplusplus @ v3.4.0-mcpp
mcpp 0.0.81 (CI version) requires package.version field. Successfully tested with mcpp 0.0.81: - Build: ✓ Downloaded compat.tomlplusplus v3.4.0 from GitHub - Compile: ✓ C++23 module + test binary (5.78s) - Run: ✓ Output 'toml++ test: OK'
Sunrisepeak
requested changes
Jul 7, 2026
Sunrisepeak
requested changes
Jul 7, 2026
| package = { | ||
| spec = "1", | ||
| namespace = "compat", | ||
| name = "compat.tomlplusplus", |
Member
There was a problem hiding this comment.
namespace = "marzer",
name = "tomlplusplus",
Member
|
cppm 只在master分支可以参考 这个 json库的做法
mcpp-index/pkgs/n/nlohmann.json.lua Lines 68 to 70 in ac4cbff 可以使用 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
添加 toml++ —— C++17 的 TOML 解析/序列化库,以 C++23
模块形式提供,可直接
import tomlplusplus;。信息
compat.tomlplusplusv3.4.0-mcpp为什么用 fork
上游官方模块单元
src/modules/tomlplusplus.cppm只在 master 分支,未进入 v3.4.0 release。fork 在v3.4.0-mcpptag 里打包了它 + mcpp.toml + 测试,未改动上游代码。用法
说明
CNURL 暂时指向与GLOBAL相同的 GitHub release,后续可由维护者补 GitCode 镜像。