The MoonBit host (wasmhost/, build/wasmhost) is the only host now. Gone: host-wasm/ (Rust on the wasmtime crate, ~5,700 lines incl. Cargo.lock), the run-rust, run-drm-rust and host-wasm recipes, and `just install --rust` (both the recipe and session/install.py now stop with an error naming the removal instead of quietly ignoring the flag). remote-build.sh builds and pulls build/wasmhost. README, wasmhost/README and docs no longer describe a second host, apart from short history notes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DPL5hiBxpbLoeUM9xfZayq
This commit is contained in:
31 files changed
+59
-5827
No files matched your search
@@ -38,16 +38,14 @@ hosts). Toolchain notes: [docs/TOOLCHAIN.md](docs/TOOLCHAIN.md). Dark mode and t
|
||||
|
||||
```
|
||||
build/compositor.wasm the compositor, a wasm component (components/compositor, code in compositor/)
|
||||
build/wasmhost the host that runs it: MoonBit, linked to the prebuilt wasmtime C API (default)
|
||||
host-wasm/ the same host in Rust on the wasmtime crate (fallback)
|
||||
build/wasmhost the host that runs it: MoonBit, linked to the prebuilt wasmtime C API
|
||||
build/components/*.wasm panel modules, loaded by the host and drawn by the compositor
|
||||
```
|
||||
|
||||
The **MoonBit host** ([wasmhost/](wasmhost/README.md)) is the default. It links
|
||||
The **MoonBit host** ([wasmhost/](wasmhost/README.md)) is the only host. It links
|
||||
`libwasmtime` from the upstream C API release instead of compiling wasmtime, so a cold build takes
|
||||
about 4 seconds (the Rust host takes about 2 minutes). The **Rust host**
|
||||
([host-wasm/](host-wasm/README.md)) serves the same `wit/host` interfaces and is kept as a
|
||||
fallback until it is removed; any host change goes into both. A **native build** of the same
|
||||
about 4 seconds. (An earlier host in Rust on the wasmtime crate, `host-wasm/`, was removed on
|
||||
2026-11-26.) A **native build** of the same
|
||||
compositor code (no wasm, `just run-native`) is used by the test suite.
|
||||
|
||||
The compositor runs **nested**, as a window on your current Wayland session, as a **login
|
||||
@@ -77,12 +75,11 @@ just client # start foot inside it (or: just client konsol
|
||||
| `just run` | Nested in a window on your Wayland session, MoonBit host |
|
||||
| `just run-drm` | As a login session on the real screen (from a text console, as yourself) |
|
||||
| `just run-x11` | On the X server in `$DISPLAY` (NVIDIA on Xorg; the whole screen when no window manager runs) |
|
||||
| `just install` | Install everything: the "Chandra" display-manager session, "Chandra (X11)" for Xorg, and face unlock (asks for root once). `--link` symlinks into this checkout (later just rebuild), `--rust` / `--native` pick the Rust host / native compositor, `--pam` turns face unlock on, `--no-face` skips it |
|
||||
| `just install` | Install everything: the "Chandra" display-manager session, "Chandra (X11)" for Xorg, and face unlock (asks for root once). `--link` symlinks into this checkout (later just rebuild), `--native` picks the native compositor, `--pam` turns face unlock on, `--no-face` skips it |
|
||||
| `just uninstall` | Remove it all again (`--purge` also deletes enrolled faces) |
|
||||
| `just reload` | Reload the running session's panel modules from disk (`chandra-ctl reload [NAME]`) |
|
||||
| `just run-rust`, `run-drm-rust` | The same with the Rust host |
|
||||
| `just run-native`, `run-drm-native` | The native (non-wasm) build |
|
||||
| `just compositor-wasm`, `wasmhost`, `host-wasm`, `modules` | Build one piece |
|
||||
| `just compositor-wasm`, `wasmhost`, `modules` | Build one piece |
|
||||
| `just test` | Native compositor tests and lib tests |
|
||||
| `just frame` | Render one composed frame to `_build/e2e_frame.png` |
|
||||
| `just remote-build` | Build on a sprites.dev sprite (`CHANDRA_SPRITE`) and pull the artifacts back |
|
||||
@@ -225,8 +222,7 @@ wit/ WIT packages: chandra:desktop (components) and chandra:hos
|
||||
compositor/ the compositor in MoonBit: wayland/, shell/, scene/, raster/, kms/, network/, portal/, host/, ...
|
||||
components/<n>/ one wasm component each: compositor, shell, panel modules (gen/ bindings + thin stub.mbt)
|
||||
lib/ pure, unit-tested logic (panel layout, clock, launcher, battery, task pills, ...)
|
||||
wasmhost/ the default host (MoonBit + wasmtime C API)
|
||||
host-wasm/ the fallback host (Rust + wasmtime)
|
||||
wasmhost/ the host (MoonBit + wasmtime C API)
|
||||
host/ the original M0 browser/Node host (jco), kept for the component demos
|
||||
session/ chandra-session, chandra-root, chandra-ctl, chandra.desktop, chandra.portal, install.py
|
||||
config/ desktop configs, themes, app list
|
||||
|
||||
Reference in new issue
Block a user