Skip to content

Commit e350a49

Browse files
SashaMITcursoragent
andcommitted
fix(ci): pin wasm32-wasip1 in rust-toolchain.toml so the pinned toolchain has its std
The verify smoke still failed with E0463 after adding the target to the dtolnay @stable step: rust-toolchain.toml pins channel 1.89.0, so every cargo invocation uses 1.89.0 — not stable — and the wasm target had been added to the wrong toolchain. Declare `targets = ["wasm32-wasip1"]` in rust-toolchain.toml so rustup auto-installs the wasm std for the pinned toolchain everywhere (CI and local), and drop the now-redundant `targets:` from the workflow step. Verified locally: the home-cli wasm build compiles clean. Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 46cbeed commit e350a49

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

.github/workflows/ci.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,8 @@ jobs:
8080
- uses: dtolnay/rust-toolchain@stable
8181
with:
8282
components: clippy, rustfmt
83-
# The carrier smoke builds the Home capsules (home-cli etc.) to wasm32-wasip1,
84-
# so that target's std must be installed or the build fails with E0463.
85-
targets: wasm32-wasip1
83+
# The carrier smoke builds the Home capsules to wasm32-wasip1; that target is
84+
# declared in rust-toolchain.toml so the pinned toolchain installs its std.
8685
- uses: Swatinem/rust-cache@v2
8786
with:
8887
workspaces: |

rust-toolchain.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
11
[toolchain]
22
channel = "1.89.0"
33
components = ["rustfmt", "clippy"]
4+
# The Home capsules (capsules/home-cli and friends) build to wasm; pin the target so the
5+
# pinned toolchain auto-installs its std (carrier smoke + `just verify`) everywhere — CI and
6+
# local — instead of failing with E0463 "can't find crate for std".
7+
targets = ["wasm32-wasip1"]

0 commit comments

Comments
 (0)