extension: prefer the lib compiled to WASM over JS restatements
One line of direction, not a design: where the extension needs logic synchronicity_lib already has, compile that Rust to WASM rather than port it to JS. How that fits the no-build-step rule is left to the first feature that needs it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
96d4755129
commit
be3f49033f
1 file changed
+5
@@ -59,6 +59,11 @@ just extension build
|
||||
That needs the `zip` binary (the nix devShell supplies it) and nothing else.
|
||||
The zip lands in `dist/`.
|
||||
|
||||
Where the extension needs logic `synchronicity_lib` already has, prefer
|
||||
compiling that Rust to WASM and calling it from here over restating it in JS
|
||||
(as `src/elide.js` and `src/plural.js` do today); how that squares with the
|
||||
no-build-step rule above is for the first feature that needs it to decide.
|
||||
|
||||
The recipes live in this directory's own `justfile` — `build`, `check`,
|
||||
`dev-path` — reachable from the repo root as `just extension <recipe>`, or as
|
||||
plain `just <recipe>` from inside `browser-extension/`. `just extension check`
|
||||
|
||||
Reference in new issue
Block a user