Skip to content

Commit 6b323eb

Browse files
committed
docs(changelog): record post-tag fixes + lib-root in 0.0.2 entry
The v0.0.2 GitHub Release is being re-issued with the same version number to fold in three improvements that landed against main *after* the original tag was pushed: * fix(modgraph): partition import scanner no longer concatenates the unit's own `:partition` into imported names (PR #14) * feat: lib-root convention `src/<package-tail>.cppm` + optional `[lib].path` (PR #15) CHANGELOG's [0.0.2] entry is amended in place to capture them, since no v0.0.3 has been published yet and we're keeping the version number stable while the project is still pre-1.0. After this PR merges, the v0.0.2 git tag and GitHub Release will be re-pointed at the new HEAD.
1 parent 1ffd275 commit 6b323eb

1 file changed

Lines changed: 16 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
## [0.0.2] — 2026-05-09
77

8-
第二个公开版本。新增 C 语言一等公民支持、xpkg 风格依赖命名空间,以及包管理子系统骨架重构
8+
第二个公开版本。新增 C 语言一等公民支持、xpkg 风格依赖命名空间、包管理子系统骨架重构,以及 lib-root 约定
99

1010
### 新增
1111

@@ -18,6 +18,14 @@
1818
mbedtls 3.6.1 全部 108 个 `.c` 源文件**(SHA-256 测试向量与 FIPS
1919
180-4 一致)。
2020

21+
-**lib-root 约定** — 库项目(`kind = "lib"` / `shared`)的 primary
22+
module interface 默认在 `src/<package-tail>.cppm`,且必须
23+
`export module <full-package-name>;`(无 `:partition` 后缀);可用
24+
`[lib].path = "src/foo.cppm"` 显式覆盖(cargo `lib.rs` 风格)。
25+
违规组合(显式 path 但文件缺失 / 文件 export partition / module 名
26+
不匹配 [package].name)报 error;约定文件缺失只报 warning,给已有
27+
项目软迁移时间。纯 binary 项目跳过所有检查。
28+
2129
-**xpkg 风格依赖命名空间**`mcpp.toml` 现在原生支持三种依赖书写形式:
2230
- 平铺默认命名空间:`gtest = "1.15.2"``(mcpp, gtest)`,无引号
2331
- TOML 子表命名空间:`[dependencies.mcpplibs] cmdline = "0.0.2"`
@@ -60,6 +68,13 @@
6068
- 🐛 path 依赖的 `[package].name` 比对支持 xpkg 标准 `name` + 旧式
6169
`<ns>.<name>` 复合名两种形式,兼容当前 mcpp-index 描述符尚未迁移的
6270
状态。
71+
- 🐛 module 扫描器解析 partition import(`import :foo`)时,不再把当前
72+
TU 自己的 partition 后缀拼进 logical name。
73+
之前 `export module M:bar;` 里的 `import :foo;` 被解析成 `M:bar:foo`
74+
(没人 provide,产生 7 条 stale warning);现在正确解析为兄弟分区
75+
`M:foo`。GCC dyndep 实际能分辨,所以 build 不影响,但 mcpp 自己的
76+
warning 噪音消失。在 `mcpplibs/tinyhttps` 上验证(7 条 warning →
77+
0 条)。
6378

6479
### 兼容性
6580

0 commit comments

Comments
 (0)