diff options
| author | Maze Winther <mazewinther@gmail.com> | 2026-04-01 21:30:26 +0200 |
|---|---|---|
| committer | Maze Winther <mazewinther@gmail.com> | 2026-04-01 21:30:26 +0200 |
| commit | 3516bd69f4aaf5be401d3e03cb45d2e5bbc28638 (patch) | |
| tree | fdf37a32f3b90762fa026828975e04a59403445b /rust | |
| parent | 57fc0fd32398f7bbdf89646c3a9f6e1d3c885b25 (diff) | |
| download | opencut-3516bd69f4aaf5be401d3e03cb45d2e5bbc28638.tar.gz | |
fix: use published opencut-wasm package
Diffstat (limited to 'rust')
| -rw-r--r-- | rust/wasm/README.md | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/rust/wasm/README.md b/rust/wasm/README.md index bb6f62e7..e90c58c2 100644 --- a/rust/wasm/README.md +++ b/rust/wasm/README.md @@ -19,3 +19,24 @@ All exports are documented in the [TypeScript definitions](./opencut_wasm.d.ts). ## Source Functions are implemented in Rust under [`rust/crates/`](../crates/). This package is the compiled WebAssembly output — do not edit it directly. + +## Local development + +The web app depends on the published `opencut-wasm` package by default. If you are editing the WASM source in this repo and want `apps/web` to use your local build instead: + +```bash +# From the repo root +bun run build:wasm + +cd rust/wasm/pkg +bun link + +cd ../../../apps/web +bun link opencut-wasm +``` + +While you work, rebuild on changes from the repo root: + +```bash +bun dev:wasm +``` |
