Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wasm32-wasi-preview1-threads was renamed #2009

Closed
Brooooooklyn opened this issue Mar 22, 2024 · 1 comment · Fixed by #2030
Closed

wasm32-wasi-preview1-threads was renamed #2009

Brooooooklyn opened this issue Mar 22, 2024 · 1 comment · Fixed by #2030
Assignees

Comments

@Brooooooklyn
Copy link
Sponsor Member

See rust-lang/rust#122170

@yisibl
Copy link
Collaborator

yisibl commented Apr 17, 2024

Nice

FrozenPandaz added a commit to nrwl/nx that referenced this issue Jul 5, 2024
This pull request is trying to add wasm32-wasi target support for the
nx/native

To test the build, you can run the following commands:

- `rustup target add wasm32-wasip1-threads`
- `pnpm exec napi build --release --platform --package-json-path
packages/nx/package.json --manifest-path packages/nx/Cargo.toml --js
./native-bindings.js -o packages/nx/src/native --target
wasm32-wasip1-threads`

And the wasm file will be built at
packages/nx/src/native/nx.wasm32-wasi.wasm

Blocked by:

- Support @napi-rs/cli 3.0  Cammisuli/monodon#48
- napi-rs/napi-rs#2009

The pseudo_terminal mod is excluded on the wasm32 targets, which is as
expected.

The watch mod is excluded because of the upstream `watchexec` deps
introduced by ignore-files don't support the wasi target at this moment
(but we can improve it).

## Related Issues
Fixes #21860
Fixes #23821

---------

Co-authored-by: FrozenPandaz <[email protected]>
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 a pull request may close this issue.

2 participants