Skip to content

ci(node): pin release rust toolchain so cross targets build#10

Merged
upsetbit merged 1 commit into
masterfrom
ci/fix-npm-cross-toolchain
Jul 4, 2026
Merged

ci(node): pin release rust toolchain so cross targets build#10
upsetbit merged 1 commit into
masterfrom
ci/fix-npm-cross-toolchain

Conversation

@upsetbit

@upsetbit upsetbit commented Jul 4, 2026

Copy link
Copy Markdown
Contributor

The node-v0.1.0 release build failed on all four cross-compiled targets
(aarch64-unknown-linux-gnu, both musl, x86_64-apple-darwin) with
error[E0463]: can't find crate for core.

Cause: Setup Rust used dtolnay/rust-toolchain@stable, installing each
target's rust-std on the stable toolchain. But napi build runs cargo in
the repo where rust-toolchain.toml pins 1.90.0, so the build used 1.90.0 —
which had no rust-std for the cross targets. Native-arch builds passed because
rustup auto-fetches the host std for the pinned toolchain.

Fix: pin the release toolchain to 1.90.0 (matching rust-toolchain.toml)
so the per-target rust-std lands on the toolchain the build actually uses.

Pre-existing bug — the release workflows never ran before (publish steps were
placeholders and Actions billing blocked earlier runs). crates.io and PyPI
0.1.0 already published successfully; this unblocks the npm 0.1.0 re-run.

🤖 Generated with Claude Code

The build matrix installed each target's rust-std on `stable`, but
`napi build` honors rust-toolchain.toml (1.90.0), which then lacked `core`
for the cross targets (aarch64-gnu, both musl, x86_64-darwin). Pin the
toolchain to 1.90.0 so the target std lands where the build uses it.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@upsetbit upsetbit merged commit 94e8e2b into master Jul 4, 2026
11 checks passed
@upsetbit upsetbit deleted the ci/fix-npm-cross-toolchain branch July 4, 2026 00:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant