Files
ssw-platform/docs
admin 6ee0cd14d8 feat(pkg): 方案 C —— lib/ 预编译 rlib 完整闭包,消费方零重编
- release.sh step2.5: 出包前 cargo clean 隔离目录 + 关 lto/embed-bitcode
  (旧 profile 多 hash 残留会 head -1 选错;LLVM22 bitcode 让 macOS ld(libLTO21) 解析失败)
- step3.2.5: lib/ 改为拷贝 deps/ 整目录(rlib+rmeta+proc-macro dylib+原生 a),
  只 glob lib*.rlib 会漏 serde_derive/tokio_macros 的 dylib → E0463
- 修正 grep -m1 channel 误匹配注释行(工具链串显示成注释)
- docs §6 重写:方案 C 机制 + 三条硬约束(编译器版本/lib 完整闭包/axum 同源)+ lto=false
- 双自检通过:A path 依赖离线编译;B 消费方零编译平台闭包直链 rlib

包体 288M → 160M(bitcode-free rlib 426KB vs 2.3MB)。
2026-11-05 11:41:04 +08:00
..