Skip to content

Commit 3057883

Browse files
Sunrisepeakclaude
andauthored
Build-plugin naming (<owner>.mplugin.<name>, pkgs/mcpp/) and mcpplibs.mplugin.slint 1.19.0; mcpplibs.mwrap.slint 1.19.0.3; mcpplibs.slintgen frozen (#868)
docs/build-plugins.md (en, zh): a build plugin's package, module and C++ namespace are one id, <owner>.mplugin.<name>; mcpp.* stays the mcpp project's; descriptors in pkgs/mcpp/. Lints: tests/check_mplugin_layout.lua, and check_reserved_namespace.lua refuses reserved owners (tests/test_check_mplugin.py). The first package of the form is mcpplibs.mplugin.slint@1.19.0 (the archive of slint-m mwrap-1.19.0.3, GLOBAL + CN); mcpplibs.mwrap.slint 1.19.0.3 re-exports it. mcpplibs.slintgen keeps its published rows and is frozen. Member tests/mwrap/slint-rule: the plugin resolved from pkgs/mcpp/ and run from build.mcpp. Design and plan: .agents/docs/2026-11-21-mcpp-build-plugin-naming-plan.md. Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
1 parent 4edd6c9 commit 3057883

22 files changed

Lines changed: 818 additions & 18 deletions

‎.agents/docs/2026-11-21-mcpp-build-plugin-naming-plan.md‎

Lines changed: 262 additions & 0 deletions
Large diffs are not rendered by default.

‎.github/workflows/validate.yml‎

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -475,6 +475,9 @@ jobs:
475475
- uses: actions/checkout@v4
476476
- name: Install lua
477477
run: sudo apt-get install -y --no-install-recommends lua5.4
478+
- name: Build-plugin lints (tests of tests/check_mplugin_layout.lua and check_reserved_namespace.lua)
479+
run: python3 tests/test_check_mplugin.py
480+
478481
- name: Lint package descriptors
479482
run: |
480483
fail=0
@@ -525,6 +528,14 @@ jobs:
525528
if ! lua5.4 tests/check_reserved_namespace.lua "$f"; then
526529
fail=1
527530
fi
531+
# 5c. The build-plugin layout (docs/build-plugins.md): a namespace
532+
# `<owner>.mplugin` is a descriptor of pkgs/mcpp/, whose files are
533+
# packages of namespace `mcpp` or build plugins; owner and name are
534+
# lower-case identifiers. The module being the package id is checked
535+
# in the plugin's own repository: the index cannot read the archive.
536+
if ! lua5.4 tests/check_mplugin_layout.lua "$f"; then
537+
fail=1
538+
fi
528539
# 6. c++fly admission policy (mcpp design 2026-07-14 §11-Q2, v1):
529540
# c++fly means "toolchain's latest level + every experimental
530541
# gate" — deliberately toolchain-dependent, so a published
@@ -1727,7 +1738,7 @@ jobs:
17271738
shell: bash
17281739
env:
17291740
SLINT_HEADLESS: "1"
1730-
run: python3 tests/mwrap/check_installed_template.py --mcpp "$MCPP" --package mcpplibs.mwrap.slint@1.19.0.2 --deploy
1741+
run: python3 tests/mwrap/check_installed_template.py --mcpp "$MCPP" --package mcpplibs.mwrap.slint@1.19.0.3 --deploy
17311742

17321743
- name: Installed Wuffs wrapper archive, actual default decode template and its relocated notices
17331744
if: contains(format(' {0} ', env.MEMBERS), ' wuffs-decode ') && matrix.toolchain == 'default'

‎CHANGELOG.md‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99

1010
### Added
1111

12+
- **构建插件的命名与布局规范(docs/build-plugins.md)与第一个新形态的包 mcpplibs.mplugin.slint 1.19.0。** 构建插件的 id 是 `<owner>.mplugin.<name>`,模块名与 C++ 命名空间就是这个 id(`mcpplibs.mplugin.slint`、`mcpplibs::mplugin::slint`),`mcpp.*` 保留给官方;`mplugin` 是种类段,如同封装包的 `mwrap`,所以引擎不被遮蔽,规则代码直接写 `mcpp::…`,在 CI 固定的 mcpp(2026.11.18.1)上实测零警告。描述符放在新目录 `pkgs/mcpp/`(完整 id 作文件名;目录是 mcpp 自己加载的包,身份仍以描述符声明为准)。新增 lint:`tests/check_mplugin_layout.lua`(`<owner>.mplugin` ↔ `pkgs/mcpp/`,owner 与 name 是标识符);`check_reserved_namespace.lua` 另拒绝 owner 为 `mcpp`、保留名、`platforms` 与种类段(`tests/test_check_mplugin.py`)。`mcpplibs.mplugin.slint@1.19.0` 的归档是 slint-m 的 `mwrap-1.19.0.3`(同一字节、GLOBAL 与 CN),规则版本与封装包修订脱钩;`mcpplibs.mwrap.slint@1.19.0.3` 把规则 reexport,使用方仍只依赖封装包。成员 tests/mwrap/slint-rule 只测 build.mcpp 对该描述符的解析与规则运行(构建包与库包分开测)。设计与实施计划见 `.agents/docs/2026-11-21-mcpp-build-plugin-naming-plan.md`。
13+
- **mcpplibs.slintgen 冻结:** 被 mcpplibs.mplugin.slint 取代;1.19.0.1 与 1.19.0.2 的行与归档保持原样、仍可使用,不再有新版本,描述写明 FROZEN。写了老 id 的工程改依赖名即可迁移;只依赖封装包的工程不受影响。
1214
- **compat.slint 声明它以 `dlopen` 加载的库。** libslint_cpp 的 winit 与 femtovg 后端加载的 X11、xcb、Xcursor、Xi、Xrender、
1315
xkbcommon、Wayland、EGL 与 GL 的 soname 记为运行期的必需(`runtime.dlopen_libs`),能力为 `display` 与 `opengl.egl.driver`;
1416
mcpp 按发起加载的对象判定它们可达。声明宿主能力的程序不能以 `--mode self-contained` 打包;已安装模板的部署检查在 mcpp

‎docs/build-plugins.md‎

Lines changed: 140 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,140 @@
1+
# Build plugins: `<owner>.mplugin.<name>`
2+
3+
A **build plugin** is a package whose modules a project's `build.mcpp` imports
4+
(`host-module`): code generators, tool wrappers, rule sets. This page is the
5+
naming and layout rule for them; the design record is
6+
`.agents/docs/2026-11-21-mcpp-build-plugin-naming-plan.md`.
7+
8+
[简体中文](zh/build-plugins.md)
9+
10+
## One name, three spellings
11+
12+
A build plugin's id is `<owner>.mplugin.<name>`. Its module and its C++
13+
namespace are that id:
14+
15+
| Spelling | Form | Example |
16+
|---|---|---|
17+
| package (namespace + name) | `<owner>.mplugin` + `<name>` | `mcpplibs.mplugin.slint` |
18+
| module | the id; sub-modules `<id>.<sub>` | `mcpplibs.mplugin.slint` |
19+
| C++ namespace | the id with `::` | `mcpplibs::mplugin::slint` |
20+
21+
```cpp
22+
// build.mcpp
23+
import mcpp;
24+
import mcpplibs.mplugin.slint;
25+
int main() {
26+
mcpplibs::mplugin::slint::options o;
27+
o.sources = {"ui/app.slint"};
28+
return mcpplibs::mplugin::slint::compile(o) ? 0 : 1;
29+
}
30+
```
31+
32+
`mplugin` is the kind segment, as `mwrap` is for wrappers
33+
(`mcpplibs.mwrap.slint` is the wrapper, `mcpplibs.mplugin.slint` its build
34+
plugin). Because the namespace is `<owner>::mplugin::<name>` and not
35+
`<owner>::mcpp::<name>`, code inside a plugin writes the engine as `mcpp::…`
36+
and nothing shadows it.
37+
38+
Rules:
39+
40+
1. `<owner>` and `<name>` are lower-case identifiers, `[a-z][a-z0-9_]*`: words
41+
are joined with `_`, never `-` (a module name needs an identifier;
42+
`mcpplibs.mwrap.godot_cpp` is the same rule).
43+
2. `<owner>` is who maintains the package. `mcpplibs` is for packages the
44+
mcpplibs organization maintains; anyone else uses their own name.
45+
3. `<owner>` is not `mcpp`, not one of the mcpp project's reserved names
46+
(`core`, `plugins`, `deps`, `rules`, `dist`, `tools`, `platforms`) and not a
47+
kind segment (`mwrap`, `mplugin`). A new official package name joins the
48+
reserved names; the check that no owner already has it is part of adding it.
49+
4. The main interface module is exactly the id; every other module of the
50+
package starts with `<id>.`.
51+
5. A package whose first segment is `mcpp` is maintained by the mcpp project
52+
and is not of this form (`mcpp.plugins`, `mcpp.platforms`).
53+
6. For a rule tied to one library, `<name>` is the library (`slint`, `grpc`,
54+
`protobuf`), with no `gen` or `-bind` suffix; several rules for one library
55+
are functions of one package. A general tool takes the tool's name
56+
(`clangtidy`).
57+
58+
## Where a rule lives
59+
60+
| Kind | Lives in | A project writes |
61+
|---|---|---|
62+
| tied to one library | the `rules/` sub-package of that library's `-m` repository; the descriptor says `mcpp = "*/rules/mcpp.toml"`; the wrapper's root manifest has `<id> = { path = "rules", host-module = true, reexport = true }` | only the wrapper |
63+
| a general tool | its own repository | `[build-dependencies] <id> = { version = "…", host-module = true }` |
64+
| engine-level, across ecosystems | the mcpp project's `mcpp.plugins` | a feature of `mcpp.plugins` |
65+
66+
A rule package's own dependencies are in its `[dependencies]` (mcpp
67+
2026.10.11.1 and later). A feature that claims a file extension does not pass
68+
through `reexport`, so a rule tied to a library takes its inputs as `options`
69+
fields (`options::sources` of `mcpplibs.mplugin.slint`).
70+
71+
## Index layout
72+
73+
- The descriptor is `pkgs/mcpp/<full id>.lua`, one flat directory: the
74+
official `pkgs/mcpp/mcpp.plugins.lua`, the plugins
75+
`pkgs/mcpp/mcpplibs.mplugin.slint.lua`. The directory is the packages mcpp
76+
itself loads; the identity is what the descriptor declares (`namespace =
77+
"<owner>.mplugin"`, `name = "<name>"`), as for `pkgs/mwrap/`. The directory
78+
does not say what a package is: `mcpp.platforms` is platform data, not a
79+
plugin.
80+
- A descriptor whose namespace is `<owner>.mplugin` is in `pkgs/mcpp/`; a file
81+
in `pkgs/mcpp/` has namespace `mcpp` or `<owner>.mplugin` (lint
82+
`tests/check_mplugin_layout.lua`).
83+
- **A build plugin and its library are tested apart.** A plugin's member
84+
checks what `build.mcpp` can do with it (what the rule produces from a small
85+
input, that a generated module compiles, that an edited input regenerates);
86+
how the library behaves is the wrapper's member and installed-template
87+
check. A plugin tied to a library is tested at first through the wrapper's
88+
member (`tests/mwrap/…`); a plugin of its own gets `tests/mcpp/<owner>-<name>/`.
89+
90+
## Versions
91+
92+
Each package has its own line: the first release is the upstream version it is
93+
built for, a revision appends `.N`, and a tag never moves. A rule tied to a
94+
library is released with the wrapper: its descriptor row points at the
95+
wrapper's tag archive (same bytes, same sha256, GLOBAL and CN), and the rule's
96+
own `rules/mcpp.toml` version equals that row; it need not equal the wrapper's
97+
revision (`mcpplibs.mplugin.slint@1.19.0` is in the archive of
98+
`mcpplibs.mwrap.slint@1.19.0.3`). Such a descriptor has no `autoupdate`: its
99+
rows are added with the wrapper's.
100+
101+
## Older packages
102+
103+
Build rules published before this page keep working: `mcpplibs.slintgen`,
104+
`mcpplibs.grpcgen`, `mcpplibs.protogen`, `mcpplibs.clangtidy`,
105+
`mcpplibs.openkal-bind` follow the earlier rule (module
106+
`mcpp.<namespace>.<name>`, SPEC-007 §9) and are not wrong. Their descriptors
107+
and archives stay; a published row never changes.
108+
109+
- A package moves to the new form when it next needs a new version: the new id
110+
is published in `pkgs/mcpp/`, the old descriptor is frozen (no `autoupdate`,
111+
`FROZEN: superseded by <id>` in its description) and gets no more versions.
112+
There is no forwarding module.
113+
- The id is the identity, so the old id cannot take the new module name: a
114+
project that wrote `x = "1"` would be moved to a new module name on update.
115+
- A project that wrote the old id keeps its versions and moves by changing the
116+
dependency name.
117+
118+
| Old id | New id | Moved |
119+
|---|---|---|
120+
| `mcpplibs.slintgen` | `mcpplibs.mplugin.slint` | 1.19.0 |
121+
| `mcpplibs.grpcgen` | `mcpplibs.mplugin.grpc` | with grpc-m's next release |
122+
| `mcpplibs.protogen` | `mcpplibs.mplugin.protobuf` | with protobuf-m's next release |
123+
| `mcpplibs.clangtidy` | `mcpplibs.mplugin.clangtidy` | with its next release |
124+
| `mcpplibs.openkal-bind` | `mcpplibs.mplugin.openkal_bind` | with openkal's next release |
125+
126+
`mcpplibs.rules-cuda` is a stub that points at `mcpp.rules.cuda`; it stays as
127+
it is.
128+
129+
## Checks
130+
131+
| Check | Where |
132+
|---|---|
133+
| namespace is not a reserved second segment of `mcpp.`; an owner is not `mcpp`, a reserved name or a kind segment | `tests/check_reserved_namespace.lua` |
134+
| layout: `<owner>.mplugin` ↔ `pkgs/mcpp/`; owner and name are identifiers | `tests/check_mplugin_layout.lua` |
135+
| a member's build prints no engine warning about a reserved module name | `tests/run_members.sh` |
136+
| the module is the package id | the rule's own repository CI (the index cannot read the archive's sources) |
137+
138+
A build plugin runs code on the machine that builds: it is reviewed as a
139+
package that executes code. `mplugin` does not mean audited; who an owner is,
140+
and names that imitate `mcpplibs`, are for review.

‎docs/package-types.md‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
Module wrappers preserve upstream APIs under `mcpplibs.mwrap.<lib>`. Use `pkgs/mwrap/<lib>.lua`; see [the wrapper specification](mwrap.md). Every -m repository has English and Chinese READMEs.
44

5+
Build plugins (modules a `build.mcpp` imports) are `<owner>.mplugin.<name>`, descriptors in `pkgs/mcpp/`; see [build plugins](build-plugins.md).
6+
57

68
**English** | [简体中文](zh/package-types.md)
79

‎docs/repository-and-schema.md‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
**English** | [简体中文](zh/repository-and-schema.md)
44

5-
Module wrapper descriptors use `pkgs/mwrap/<lib>.lua` and their consumers use `tests/mwrap/<member>/`; see [the mwrap specification](mwrap.md). The category is flat and published unchanged. The workspace test source uses the current pinned mcpp; `index.toml` separately states the descriptor compatibility floor.
5+
Module wrapper descriptors use `pkgs/mwrap/<lib>.lua` and their consumers use `tests/mwrap/<member>/`; see [the mwrap specification](mwrap.md). Build plugins (`<owner>.mplugin.<name>`) and the mcpp project's own packages use `pkgs/mcpp/<full id>.lua`; see [build plugins](build-plugins.md). The category is flat and published unchanged. The workspace test source uses the current pinned mcpp; `index.toml` separately states the descriptor compatibility floor.
66

77
## Repository layout
88

@@ -20,7 +20,8 @@ tests/examples/<member>/ one test project per library (a workspace member; <
2020
tests/*.cpp behavioral assertions (standalone main; a non-zero exit code is a failure)
2121
tests/check_mirror_urls.lua lint: GLOBAL+CN table completeness, and that CN points at mcpp-res
2222
tests/check_package_name.lua lint: identity shape (name is a single atomic segment, hierarchy belongs to namespace)
23-
tests/check_reserved_namespace.lua lint: a namespace is not a reserved second segment of `mcpp.` (core, plugins, deps, rules, dist, tools)
23+
tests/check_reserved_namespace.lua lint: a namespace is not a reserved second segment of `mcpp.` (core, plugins, deps, rules, dist, tools); an `<owner>.mplugin` owner is not mcpp, a reserved name or a kind segment
24+
tests/check_mplugin_layout.lua lint: `<owner>.mplugin` descriptors are in pkgs/mcpp/, whose files are namespace `mcpp` or build plugins; identifiers
2425
tests/list_cn_urls.lua extracts the CN urls for mirror-cn-reachable
2526
tests/run_members.sh runs workspace members one at a time and times each. The entry point used both by CI
2627
and locally; see "Running workspace members locally" below

‎docs/zh/build-plugins.md‎

Lines changed: 98 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,98 @@
1+
# 构建插件:`<owner>.mplugin.<name>`
2+
3+
**构建插件**是模块由工程的 `build.mcpp` 导入的包(`host-module`):代码生成器、工具封装、规则集。本页是它们的命名与布局规则;设计记录见
4+
`.agents/docs/2026-11-21-mcpp-build-plugin-naming-plan.md`。
5+
6+
[English](../build-plugins.md)
7+
8+
## 一个名字,三种写法
9+
10+
构建插件的 id 是 `<owner>.mplugin.<name>`;模块名和 C++ 命名空间都是这个 id:
11+
12+
| 写法 | 形式 | 例子 |
13+
|---|---|---|
14+
| 包(namespace + name) | `<owner>.mplugin` + `<name>` | `mcpplibs.mplugin.slint` |
15+
| 模块 | id;子模块 `<id>.<子名>` | `mcpplibs.mplugin.slint` |
16+
| C++ 命名空间 | id,`.` 换成 `::` | `mcpplibs::mplugin::slint` |
17+
18+
```cpp
19+
// build.mcpp
20+
import mcpp;
21+
import mcpplibs.mplugin.slint;
22+
int main() {
23+
mcpplibs::mplugin::slint::options o;
24+
o.sources = {"ui/app.slint"};
25+
return mcpplibs::mplugin::slint::compile(o) ? 0 : 1;
26+
}
27+
```
28+
29+
`mplugin` 是种类段,如同 `mwrap` 之于封装包(`mcpplibs.mwrap.slint` 是封装包,`mcpplibs.mplugin.slint` 是它的构建插件)。命名空间是
30+
`<owner>::mplugin::<name>`,不是 `<owner>::mcpp::<name>`,所以插件内部直接写 `mcpp::…` 调用引擎,不会被遮蔽。
31+
32+
规则:
33+
34+
1. `<owner>` 与 `<name>` 是小写标识符,`[a-z][a-z0-9_]*`:多词用 `_` 连接,不用 `-`(模块名需要标识符;`mcpplibs.mwrap.godot_cpp` 是同一条规则)。
35+
2. `<owner>` 是维护者。`mcpplibs` 只给 mcpplibs 组织维护的包;其他人用自己的名字。
36+
3. `<owner>` 不得是 `mcpp`,不得是 mcpp 项目的保留名(`core`、`plugins`、`deps`、`rules`、`dist`、`tools`、`platforms`),也不得是种类段(`mwrap`、
37+
`mplugin`)。官方新增一个包名即加入保留名,新增时须核对没有 owner 已用此名。
38+
4. 主接口模块恰好是 id;包内其他模块都以 `<id>.` 开头。
39+
5. 第一段是 `mcpp` 的包由 mcpp 项目维护,不属于这个形态(`mcpp.plugins`、`mcpp.platforms`)。
40+
6. 与某个库绑定的规则,`<name>` 是库名(`slint`、`grpc`、`protobuf`),不加 `gen`、`-bind` 后缀;同一个库的多个规则是同一个包的函数。通用工具取工具名
41+
(`clangtidy`)。
42+
43+
## 规则放在哪里
44+
45+
| 类型 | 放在 | 工程怎么写 |
46+
|---|---|---|
47+
| 与某个库绑定 | 该库 `-m` 仓库的 `rules/` 子包;描述符写 `mcpp = "*/rules/mcpp.toml"`;封装包的根 manifest 有 `<id> = { path = "rules", host-module = true, reexport = true }` | 只依赖封装包 |
48+
| 通用工具 | 自己的仓库 | `[build-dependencies] <id> = { version = "…", host-module = true }` |
49+
| 引擎级、跨生态 | mcpp 项目的 `mcpp.plugins` | `mcpp.plugins` 的某个 feature |
50+
51+
规则包自己的依赖写在它的 `[dependencies]`(mcpp 2026.10.11.1 及以后)。认领文件扩展名的 feature 不经 `reexport` 传递,所以与库绑定的规则以 `options`
52+
字段接收输入(`mcpplibs.mplugin.slint` 的 `options::sources`)。
53+
54+
## 索引布局
55+
56+
- 描述符是 `pkgs/mcpp/<完整 id>.lua`,一层平铺:官方的 `pkgs/mcpp/mcpp.plugins.lua`,插件的 `pkgs/mcpp/mcpplibs.mplugin.slint.lua`。这个目录放的是
57+
mcpp 自己加载的包;身份以描述符声明的为准(`namespace = "<owner>.mplugin"`、`name = "<name>"`),与 `pkgs/mwrap/` 相同。目录不说明包是什么:
58+
`mcpp.platforms` 是平台数据,不是插件。
59+
- namespace 为 `<owner>.mplugin` 的描述符在 `pkgs/mcpp/`;`pkgs/mcpp/` 里文件的 namespace 是 `mcpp` 或 `<owner>.mplugin`(lint:
60+
`tests/check_mplugin_layout.lua`)。
61+
- **构建插件与它的库分开测试。** 插件的成员只测 `build.mcpp` 能用它做什么(规则对一个小输入产出什么,生成的模块能否编译,改动的输入是否重新生成);库本身的行为
62+
由封装包的成员与已安装模板检查来测。与库绑定的插件起初通过封装包的成员测(`tests/mwrap/…`);独立的插件用 `tests/mcpp/<owner>-<name>/`。
63+
64+
## 版本
65+
66+
每个包有自己的版本线:首个版本是它所针对的上游版本,修订追加 `.N`,标签不移动。与库绑定的规则随封装包发布:描述符的行指向封装包的标签归档(同样的字节、同一个
67+
sha256、GLOBAL 与 CN),规则自己的 `rules/mcpp.toml` 版本等于这一行,不必等于封装包的修订号(`mcpplibs.mplugin.slint@1.19.0` 在
68+
`mcpplibs.mwrap.slint@1.19.0.3` 的归档里)。这样的描述符不写 `autoupdate`:它的行与封装包的行一起加入。
69+
70+
## 较早的包
71+
72+
本页之前发布的构建规则继续可用:`mcpplibs.slintgen`、`mcpplibs.grpcgen`、`mcpplibs.protogen`、`mcpplibs.clangtidy`、`mcpplibs.openkal-bind` 遵循较早的规则
73+
(模块 `mcpp.<namespace>.<name>`,SPEC-007 §9),并不是错的。它们的描述符与归档保留;已发布的行不改。
74+
75+
- 一个包在下次需要新版本时迁到新形态:新 id 在 `pkgs/mcpp/` 发布,老描述符冻结(无 `autoupdate`,描述里写 `FROZEN: superseded by <id>`),不再有新版本。没有转发模块。
76+
- id 就是身份,老 id 不能改用新的模块名:写着 `x = "1"` 的工程会在升级时被带到新的模块名。
77+
- 写了老 id 的工程保留它的各个版本,改依赖名即可迁移。
78+
79+
| 老 id | 新 id | 迁移 |
80+
|---|---|---|
81+
| `mcpplibs.slintgen` | `mcpplibs.mplugin.slint` | 1.19.0 |
82+
| `mcpplibs.grpcgen` | `mcpplibs.mplugin.grpc` | grpc-m 的下次发布 |
83+
| `mcpplibs.protogen` | `mcpplibs.mplugin.protobuf` | protobuf-m 的下次发布 |
84+
| `mcpplibs.clangtidy` | `mcpplibs.mplugin.clangtidy` | 它的下次发布 |
85+
| `mcpplibs.openkal-bind` | `mcpplibs.mplugin.openkal_bind` | openkal 的下次发布 |
86+
87+
`mcpplibs.rules-cuda` 是指向 `mcpp.rules.cuda` 的占位包,保持原样。
88+
89+
## 检查
90+
91+
| 检查 | 位置 |
92+
|---|---|
93+
| namespace 不是 `mcpp.` 的保留第二段;owner 不是 `mcpp`、保留名或种类段 | `tests/check_reserved_namespace.lua` |
94+
| 布局:`<owner>.mplugin` ↔ `pkgs/mcpp/`;owner 与 name 是标识符 | `tests/check_mplugin_layout.lua` |
95+
| 成员构建不打印引擎对保留模块名的警告 | `tests/run_members.sh` |
96+
| 模块就是包 id | 规则自己仓库的 CI(索引读不到归档里的源码) |
97+
98+
构建插件在构建机器上运行代码:按“会执行代码的包”评审。`mplugin` 不表示已审计;owner 是谁、模仿 `mcpplibs` 的名字,由评审判断。

0 commit comments

Comments
 (0)