fix(ci): bump CI toolchain pins to Rust 1.94, correct README crate table

This commit is contained in:
Kayshen-X 2026-05-16 13:05:40 +08:00
parent 74f5f658a9
commit 5e14317b59
5 changed files with 20 additions and 15 deletions

View file

@ -24,7 +24,7 @@ on:
jobs:
check:
name: ${{ matrix.os }} / 1.85
name: ${{ matrix.os }} / 1.94
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
@ -36,7 +36,7 @@ jobs:
submodules: recursive
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: '1.85'
toolchain: '1.94'
components: rustfmt, clippy
- uses: Swatinem/rust-cache@v2
# Linux GL prerequisites for winit's x11+wayland feature link.

View file

@ -72,7 +72,7 @@ jobs:
submodules: recursive
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: '1.85'
toolchain: '1.94'
targets: ${{ matrix.target }}
components: rustfmt, clippy
- uses: Swatinem/rust-cache@v2
@ -114,9 +114,9 @@ jobs:
- name: Test (host, macOS / Windows)
if: matrix.cross == false && matrix.check_only != true && runner.os != 'Linux'
run: cargo test --workspace --target ${{ matrix.target }}
# Desktop binary artifact upload removed with the `openpencil-app`
# placeholder crate (Phase 1 Task 1.2). Step 1f reintroduces a
# real desktop binary (new `op-*` crate) and its upload step here.
# Desktop binary artifact upload is intentionally not wired here yet.
# The real desktop binary lives in the `openpencil-desktop` crate; a
# build + upload step can be added once release packaging is finalized.
wasm-web:
name: wasm32-unknown-unknown / openpencil-shell-web (compile guard)
@ -127,7 +127,7 @@ jobs:
submodules: recursive
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: '1.85'
toolchain: '1.94'
targets: wasm32-unknown-unknown
- uses: Swatinem/rust-cache@v2
with:
@ -173,7 +173,7 @@ jobs:
submodules: recursive
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: '1.85'
toolchain: '1.94'
targets: ${{ matrix.target }}
- uses: Swatinem/rust-cache@v2
with:

View file

@ -57,7 +57,7 @@ jobs:
submodules: recursive
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: '1.85'
toolchain: '1.94'
targets: ${{ matrix.target }}
- uses: Swatinem/rust-cache@v2
with:

View file

@ -21,7 +21,7 @@ jobs:
submodules: recursive
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: '1.85'
toolchain: '1.94'
targets: wasm32-unknown-unknown
- uses: Swatinem/rust-cache@v2
with:

View file

@ -447,8 +447,8 @@ bun run mcp:dev # Run MCP server from source
OpenPencil 正在进行全量 Rust 化。当前状态见 `openpencil-docs/superpowers/specs/2026-05-02-rust-ification-kickoff.md`v7 FROZEN
```bash
# Install Rust toolchain (rust-toolchain.toml auto-pins 1.85)
rustup toolchain install 1.85
# Install Rust toolchain (rust-toolchain.toml auto-pins 1.94)
rustup toolchain install 1.94
rustup target add wasm32-unknown-unknown
# build / test / lint
@ -461,9 +461,14 @@ bun run cargo:deny # cargo-deny (native + wasm32 bans; CI uses cargo-deny
**Crate list (`crates/`):**
| Crate | Category | wasm32 |
| ---------------------------------- | ------------------------------ | --------------------------------------------- |
| openpencil-shell-{core,web,native} | UI shellspec §1.2 三 crate | core/web ✅ / native ❌ (compile_error guard) |
| Crate | Category | wasm32 |
| ----------------------- | ------------------------------------------------ | ------------------------ |
| openpencil-shell-core | Platform-free widgets + Document model | ✅ |
| openpencil-shell-web | Browser runner (wasm32 + skia-safe-op fork) | ✅ |
| openpencil-shell-native | Native lib (WidgetHostNative + NativeBackend) | ❌ (compile_error guard) |
| openpencil-desktop | Desktop binary (winit + skia-safe GL surface) | ❌ (native only) |
| anthropic-agent-sdk | Vendored Claude Code CLI SDK (streaming, MCP) | ❌ (native only) |
| wasm-libc-shim | libc / libm / libcxx shim for wasm32 skia bundle | ✅ |
**Submodule:** `vendor/agent``github.com/ZSeven-W/agent-rs` (cross-product Rust agent runtime).