Files
ssw-platform/rust-toolchain.toml
T
admin b11ec26106 refactor(kernel): 拆出 contract/store/sdk 三层 crate,剥离原厂标识
- 新增 sspf-contract(契约类型,不含 axum)、sspf-store(db/config,不认识 HTTP)、
  sspf-sdk(业务包唯一依赖)与 packs/asset 样板包(可独立编译)
- 内核 platform/{envelope,entity,menu,ids,db,config}.rs 改为 re-export,引用路径零变化
- jnpf.rs → face_b.rs,9 处标识符改名;契约字面量(jnpf-origin / jnpfKey)刻意保留
- 新增 check-arch / check-naming / mem-budget 三道闸门;rust-toolchain 锁 1.95.0
- 影响:行为零变化(240 测试 / 九闸全绿 / 空载 7 MB),Profile 从 guard 迁到 config 断开假依赖
2026-10-31 10:10:34 +08:00

23 lines
1.1 KiB
TOML
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 🔴 全仓工具链锁定 —— **不要单独改某个 crate,也不要「本地升了就行」**
#
# 为什么必须锁:
# L3 动态库(cdylib)走 C ABI + JSON 边界(PLAN.md §4.5)。
# Rust **没有稳定 ABI**,内核与插件用不同 rustc 编译 ⇒ 结构体内存布局可能不同 ⇒
# 运行期段错误,且极难定位(崩溃点往往在无关的函数里)。
# ⇒ 内核、所有 packs、所有 plugins,必须用**同一个** rustc 版本。
#
# 怎么升:
# 1. 改本文件的 channel
# 2. 全仓 `cargo build --release` 重编(含 packs/*)
# 3. 所有已发布的 dylib 插件**全部重编重发**(旧插件会被 build_info 校验拒载)
# 4. 同步 `packs/*/pack.toml` 的 `[pack.build].toolchain`
#
# 当前版本 = 本机既有版本(2026-10-31 定)。不追最新:
# 1.99.1 是最新 stable,但本机下载受代理限速(6MB 卡死),
# 且「锁哪个版本」不影响架构,只影响可复现性 ⇒ 先用已有的 1.95.0,需要时再整体升。
[toolchain]
channel = "1.95.0"
components = ["rustfmt", "clippy"]
profile = "minimal"