···11# Bunnymark in Zig / WASM
2233-This is a Zig project. To build it you'll need Zig 0.9 or 0.10.
33+This is a Zig project. To build it you'll need Zig 0.12 or newer.
4455### Building
6677```
88-zig build
88+zig build --release=small
99```
10101111### Replacing the assets used to build TIC-80
···1313Copy the build over the canonical WASM file:
14141515```
1616-cp zig-out/lib/cart.wasm wasmmark.wasm
1616+cp zig-out/bin/cart.wasm wasmmark.wasm
1717```
18181919-During a TIC-80 build the `wasm` and `wasmp` file will be merged into a single demo cartridge and embedded into the TIC-80 binary.1919+During a TIC-80 build the `wasm` and `wasmp` file will be merged into a single demo cartridge and embedded into the TIC-80 binary.
···11# ZIG Starter Project Template
2233-This is a ZIG / TIC-80 starter template. To build it, ensure you have the latest development release (`0.12.0-dev.1482+e74ced21b` or newer), then run:
33+This is a ZIG / TIC-80 starter template. To build it, ensure you have the latest development release (`0.12.0-dev.2727+fad5e7a99` or newer), then run:
4455```
66-zig build -Doptimize=ReleaseSmall
66+zig build --release=small
77```
8899To import the resulting WASM to a cartridge:
10101111```
1212-tic80 --fs . --cmd 'load game.tic & import binary zig-out/bin/cart.wasm & save'
1212+tic80 --fs . --cmd 'load cart.wasmp & import binary zig-out/bin/cart.wasm & save'
1313```
14141515Or from the TIC-80 console:
16161717```
1818-load game.tic
1919-import binary zig-out/bin/cart.wasm
1818+tic80 --fs .
1919+2020+load zig-out/bin/cart.wasmp
2121+import binary cart.wasm
2022save
2123```
22242325This is assuming you've run TIC-80 with `--fs .` inside your project directory.
24262727+Or easy call it :)
2828+```zsh
2929+sh run.sh
3030+```