This is just a simple, baseline repository that can act as a starting point for wasm
projects.
- If you don't have a Rust compiler installed, get
rustup
here. This will help you install all of the required tools for running a standard rust compiler. - Get
wasm-pack
. This installs thewasm-pack
command, which lets you build rust code for thewasm32_unknown_unknown
compiler target, and generates js glue code for your wasm. npm install
. Install all node-dependencies.npm run build-wasm
. Runswasm-pack
: this will handle installing any rust dependencies.npm run dev
. Start a development site.
Note: you can follow the tutorial here as a rust setup guide.
You should now have a dev server running the application at localhost:3000
.