Skip to content

Switch WASM target from wasip1 to wasip2#5

Merged
brandonrc merged 1 commit intomainfrom
fix/1-target-wasip2
Feb 21, 2026
Merged

Switch WASM target from wasip1 to wasip2#5
brandonrc merged 1 commit intomainfrom
fix/1-target-wasip2

Conversation

@brandonrc
Copy link
Contributor

Summary

  • Switch build target from wasm32-wasip1 to wasm32-wasip2 across all configs, CI workflows, and docs
  • wasip1 is legacy; WASI preview 2 is stable in Rust and supported by wasmtime 24+
  • No code changes needed: wit-bindgen 0.36 and all dependencies build cleanly with wasip2

Files changed

  • .cargo/config.toml - default build target
  • rust-toolchain.toml - toolchain target
  • .github/workflows/ci.yml - CI build/lint/test target
  • .github/workflows/release.yml - release build target
  • README.md - documentation references
  • docs/TEST_PLAN.md - test plan references

Test plan

  • cargo build --release --target wasm32-wasip2 succeeds
  • cargo clippy --target wasm32-wasip2 -- -D warnings passes
  • cargo test --target <host> passes (12/12 tests)
  • cargo fmt --check passes
  • CI workflow passes with wasip2 target

Closes #1

wasip1 is effectively legacy. The WASI preview 2 target
(wasm32-wasip2) is stable in Rust and fully supported by
wasmtime 24+. No code changes needed, wit-bindgen 0.36
works with both targets.

Closes #1
@sonarqubecloud
Copy link

@brandonrc brandonrc merged commit 618ff83 into main Feb 21, 2026
4 checks passed
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.

Target wasip2

1 participant