feat(toolchain): add automatic bundled Rust toolchain fallback and integrate with CLI/CargoRunner

This commit is contained in:
2026-02-09 20:57:52 +00:00
parent 18dc4c3a79
commit 85273e2933
10 changed files with 218 additions and 43 deletions

View File

@@ -1,5 +1,16 @@
# Changelog
## 2026-02-09 - 1.3.0 - feat(toolchain)
add automatic bundled Rust toolchain fallback and integrate with CLI/CargoRunner
- Introduce ToolchainManager to download and install a minimal Rust toolchain to /tmp/tsrust_toolchain/ when system cargo is absent
- Add getEnvPrefix() and installation/verification logic to ToolchainManager; supports Linux and macOS (x64, arm64)
- Make CargoRunner accept an envPrefix and prepend it to cargo/rustup commands so bundled toolchain can be used transparently
- Update CLI to resolve toolchain at runtime (use system cargo if available; otherwise auto-install bundled toolchain) and pass envPrefix to CargoRunner for builds and clean
- Update exports to include mod_toolchain and add new ts/mod_toolchain module files
- Document the automatic toolchain behavior in readme.md and update usage description
- Bump dependencies: @push.rocks/smartcli ^4.0.20 and @types/node ^25.2.2
## 2026-02-09 - 1.2.0 - feat(cli)
support default cross-compilation targets from npmextra.json