Quickstart
- Install
rust
usingrustup
. - Install this tool.
- Run
wasm-pack new hello-wasm
. cd hello-wasm
- Run
wasm-pack build
. - This tool generates files in a
pkg
dir - To publish to npm, run
wasm-pack publish
. You may need to login to the registry you want to publish to. You can login usingwasm-pack login
.