Make the MoonBit host the default: just run, run-drm and install-session use build/wasmhost
CI / test (push) Failing after 17s
CI / test (push) Failing after 17s
The Rust host stays as a fallback: just run-rust, run-drm-rust, install-session-rust (session/install.py --rust-host). build-wasmhost.sh fetches the wasmtime C API when it is missing and replaces build/wasmhost by renaming, so a running dev session keeps its copy. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DPL5hiNfjrw2edja7LiRLB
This commit is contained in:
6 files changed
+65
-32
No files matched your search
+5
-3
@@ -1,11 +1,13 @@
|
||||
# chandra-host
|
||||
# chandra-host (Rust, fallback)
|
||||
|
||||
Runs the compositor **as a WebAssembly component**.
|
||||
Runs the compositor **as a WebAssembly component**. The default host is now the MoonBit one in
|
||||
[`wasmhost/`](../wasmhost/README.md), which builds in seconds; this crate compiles wasmtime (about
|
||||
2 minutes cold) and is kept as a fallback until it is removed. Both serve the same `wit/host`.
|
||||
|
||||
```
|
||||
just compositor-wasm # build/compositor.wasm (the compositor, a component)
|
||||
just host-wasm # host-wasm/target/release/chandra-host (this crate)
|
||||
just run-wasm # both, then run in a window on your current Wayland session
|
||||
just run-rust # both, then run in a window on your current Wayland session
|
||||
```
|
||||
|
||||
The component (`components/compositor`, entry in `compositor/app`) imports exactly one interface,
|
||||
|
||||
Reference in new issue
Block a user