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
feat(core): support compile to wasi target #22870
base: master
Are you sure you want to change the base?
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Ignored Deployment
|
☁️ Nx Cloud ReportCI is running/has finished running commands for commit f26badb. As they complete they will appear below. Click to see the status, the terminal output, and the build insights. 📂 See all runs for this CI Pipeline Execution ✅ Successfully ran 6 targets
Sent with 💌 from NxCloud. |
After spending several hours reviewing the source code of |
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:
wasm32-wasi-preview1-threads
was renamed napi-rs/napi-rs#2009The 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).