Troubleshooting
Build Errors
If you encounter build errors, make sure:
-
The
wasm32-unknown-unknowntarget is installed:rustup target add wasm32-unknown-unknown -
For Fastly, install the
wasm32-wasitarget:rustup target add wasm32-wasi
Ruby Code Not Updating
The Ruby code is compiled at build time. After changing lib/app.rb, you need to rebuild the WASM module:
cargo build --target wasm32-unknown-unknown --release
WASM Module Too Large
To reduce WASM module size:
- Use release builds (already configured)
- Strip debug symbols (already configured)
- Minimize Ruby code and dependencies