Building from Source
Prerequisites
-
Rust (stable, with
wasm32-wasip1target):rustup target add wasm32-wasip1 -
Go 1.22 or later
-
Zellij 0.40 or later (for testing)
-
make
Quick Build
# Build everything (WASM plugin + Go CLI)
make build
# Install the plugin into Zellij
make install
Build Targets
| Target | Description |
|---|---|
|
Build release WASM + Go CLI |
|
Build WASM plugin only (release mode) |
|
Build WASM plugin in debug mode (faster) |
|
Build Go CLI only (requires WASM binary) |
|
Cross-compile CLI for linux/amd64 and linux/arm64 |
|
Build and install plugin into Zellij |
|
Run all tests (Go + Rust) |
|
Run all linters (go vet + clippy) |
|
Remove all build artifacts |
Development Workflow
For rapid iteration on the plugin:
# Build debug WASM and install to Zellij plugins dir
make dev
# After changing Rust code, hot-reload without restarting Zellij
make reload
| Always kill existing Zellij sessions after installing a new WASM binary. Running sessions keep the old plugin in memory. |
zellij kill-all-sessions -y
zellij --layout cc-deck