Add neargye.magic_enum package (C++23 module) - #136
Merged
Conversation
- Add package descriptor pkgs/n/neargye.magic_enum.lua - Add test example tests/examples/magic_enum/ - Update README and workspace members
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.
概述
将 Neargye/magic_enum v0.9.8 收录进 mcpp-index,以 C++23 模块形式暴露
import magic_enum;。变更内容
包描述符
pkgs/n/neargye.magic_enum.luaneargye,包名:magic_enummodule/magic_enum.cppm)测试工程
tests/examples/magic_enum/enum_name、enum_cast、enum_values等基本功能文档更新
.agents/docs/2026-07-29-add-magic_enum-plan.md技术细节
module/magic_enum.cppm包含条件预处理器块(#if __has_include(<fmt/format.h>)),mcpp 的 M1 模块扫描器不允许此类条件块。使用scan_overrides绕过扫描器限制,直接指定模块提供关系。generated_files,减少维护负担,保持与上游同步。mcpp-res写权限,使用纯字符串形式的上游 URL。CN 用户将回退至上游源,后续由维护者补充镜像。mcpp xpkg parse和mcpp test -p magic_enum验证,测试通过。验证结果
相关文件
pkgs/n/neargye.magic_enum.luatests/examples/magic_enum/mcpp.tomltests/examples/magic_enum/tests/reflection.cpp.agents/docs/2026-07-29-add-magic_enum-plan.mdREADME.md(更新)mcpp.toml(更新 workspace members)