Skip to content

🏗 Development Setup

Here is a quick guide to set this project up for development.

Requirements

Initial Setup

You will only have to do this once.

In the justfile and Makefile you will find the target init_dev, run it:

just init_dev

or

make init_dev

It will:

  • install node dependencies
  • build wasm binaries
  • link against local packages
  • run the vite dev server

If you don't have just or make installed:

Install just

Automatically rebuild on change

When developing the cycle is:

  • Change the code
  • Compile to wasm (or run tests)
  • Evaluate

To avoid having to run a command each time to Compile I strongly recommend setting up a auto runner like watchexec.

watchexec --restart --exts rs --exts toml just build-wasm

or just:

just watch-and-run build-wasm

have fun!