docs(pkg): 消费方只需解 lib/ + rust-toolchain,不需要平台源码

This commit is contained in:
admin committed 2026-11-05 12:50:45 +08:00
1 parent 6ee0cd14d8
commit 86859a77e2
1 file changed
+2 -1
+2 -1
View File
@@ -296,7 +296,8 @@ bash scripts/release.sh 0.5.1 # 或显式指定版本(覆盖 crates/sspf
### 6.3 消费方怎么接(方案 C,推荐路径)
1. 把 `dist/sspf-vX.Y.Z.tar.gz` 解包到 `vendor/sspf-vX.Y.Z/`。
(技能仓:`bash scripts/fetch-platform.sh vX.Y.Z` 自动解包 + 生成 config。)
**只需 `lib/` + `rust-toolchain.toml` 即可**(不需要平台源码 `crates/`、`src/`)。
(技能仓:`bash scripts/fetch-platform.sh vX.Y.Z` 自动**只解 rlib + 工具链**并生成 config。)
2. **复制工具链锁**:`cp vendor/sspf-vX.Y.Z/rust-toolchain.toml ./`(确保 rustc 1.95.0)。
3. **生成 `.cargo/config.toml`**(含本机绝对路径,**不要提交**,加进 `.gitignore`):