Skip to content

fix(js): disable WASM target until tokio feature gating is resolved#641

Merged
chaliy merged 3 commits intomainfrom
claude/ship-patch-release-cac1z
Mar 15, 2026
Merged

fix(js): disable WASM target until tokio feature gating is resolved#641
chaliy merged 3 commits intomainfrom
claude/ship-patch-release-cac1z

Conversation

@chaliy
Copy link
Contributor

@chaliy chaliy commented Mar 15, 2026

Summary

  • Disable WASM (wasm32-wasip1-threads) build/test in publish-js.yml
  • Remove wasm target from package.json napi targets
  • Revert bashkit-js tokio narrowing (doesn't help due to Cargo feature unification with bashkit core)

Root cause: bashkit core depends on tokio = { features = ["full"] } which includes net/fs/process — unsupported on wasm32. Cargo unifies features across the dependency graph, so even if bashkit-js requests minimal features, the core crate's full wins.

Impact: npm package publishes with 5 native targets (macOS x86/arm, Linux x86/arm, Windows). No WASM target until tokio features are gated behind a Cargo feature in bashkit core.

Test plan

  • cargo clippy --all-targets --all-features passes
  • CI green
  • Re-trigger publish-js.yml after merge — should succeed with 5 native targets

chaliy added 3 commits March 15, 2026 03:09
tokio "full" features include net/fs/process which are unsupported
on wasm32-wasip1-threads. Narrow to sync/macros/io-util/rt/time
which are the only features actually used.
bashkit core depends on tokio with "full" features which includes
net/fs/process — unsupported on wasm32. Cargo feature unification
means the JS crate inherits these even with narrowed features.

Disable WASM build/test in publish-js.yml and remove wasm target
from package.json. The 5 native targets (macOS x86/arm, Linux
x86/arm, Windows) all work. WASM needs an architectural fix to
gate tokio features in bashkit core.
@chaliy chaliy merged commit 21a9b56 into main Mar 15, 2026
23 checks passed
@chaliy chaliy deleted the claude/ship-patch-release-cac1z branch March 15, 2026 04:03
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