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
@@ -49,11 +49,6 @@ run-x11: compositor-wasm wasmhost modules
|
||||
rm -f {{socket}}
|
||||
build/wasmhost build/compositor.wasm --socket {{socket}} --theme {{theme}} --x11
|
||||
|
||||
# The same on the Rust host (host-wasm), kept as a fallback while the MoonBit host settles in.
|
||||
run-rust: compositor-wasm host-wasm modules
|
||||
rm -f {{socket}}
|
||||
host-wasm/target/release/chandra-host build/compositor.wasm --socket {{socket}} --theme {{theme}} --window
|
||||
|
||||
# Run the native compositor (tcc debug build, with the wasm panel modules) in a window on your current Wayland session.
|
||||
run-native: build modules
|
||||
rm -f {{socket}}
|
||||
@@ -87,19 +82,13 @@ run-drm: compositor-wasm wasmhost modules
|
||||
-dbus-update-activation-environment --systemd WAYLAND_DISPLAY=$(basename {{socket}}) XDG_SESSION_TYPE=wayland XDG_CURRENT_DESKTOP=chandra 2>/dev/null
|
||||
build/wasmhost build/compositor.wasm --drm --socket {{socket}} --theme {{theme}}
|
||||
|
||||
# The same on the Rust host (host-wasm).
|
||||
run-drm-rust: compositor-wasm host-wasm modules
|
||||
rm -f {{socket}}
|
||||
-dbus-update-activation-environment --systemd WAYLAND_DISPLAY=$(basename {{socket}}) XDG_SESSION_TYPE=wayland XDG_CURRENT_DESKTOP=chandra 2>/dev/null
|
||||
host-wasm/target/release/chandra-host build/compositor.wasm --drm --socket {{socket}} --theme {{theme}}
|
||||
|
||||
# The same on the native compositor (system-cc release build), for comparison.
|
||||
run-drm-native: build-release modules
|
||||
rm -f {{socket}}
|
||||
-dbus-update-activation-environment --systemd WAYLAND_DISPLAY=$(basename {{socket}}) XDG_SESSION_TYPE=wayland XDG_CURRENT_DESKTOP=chandra 2>/dev/null
|
||||
{{release_exe}} --drm --socket {{socket}} --theme {{theme}}
|
||||
|
||||
# Install everything (login session, panel modules, KDE colors, portal, face unlock); builds as you, then asks for root once. Flags: --link, --rust, --native, --pam, --no-face (docs/install.md).
|
||||
# Install everything (login session, panel modules, KDE colors, portal, face unlock); builds as you, then asks for root once. Flags: --link, --native, --pam, --no-face (docs/install.md).
|
||||
install *flags:
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
@@ -107,13 +96,11 @@ install *flags:
|
||||
face=1
|
||||
for f in {{flags}}; do
|
||||
case "$f" in
|
||||
--rust|--native)
|
||||
[ -z "${host:-}" ] || [ "$host" = "$f" ] || { echo "just install: --rust and --native exclude each other" >&2; exit 2; }
|
||||
host=$f
|
||||
if [ "$f" = --rust ]; then builds="compositor-wasm host-wasm modules"; else builds="build-release modules"; fi ;;
|
||||
--native) builds="build-release modules" ;;
|
||||
--rust) echo "just install: --rust is gone: the Rust host was removed (2026-11-26); the MoonBit host is the only one" >&2; exit 2 ;;
|
||||
--no-face) face=0 ;;
|
||||
--link|--pam|--no-models) ;;
|
||||
*) echo "just install: unknown flag $f (--link, --rust, --native, --pam, --no-face, --no-models)" >&2; exit 2 ;;
|
||||
*) echo "just install: unknown flag $f (--link, --native, --pam, --no-face, --no-models)" >&2; exit 2 ;;
|
||||
esac
|
||||
done
|
||||
{{just_executable()}} --justfile "{{justfile()}}" $builds
|
||||
@@ -197,7 +184,4 @@ compositor-wasm:
|
||||
wasmhost:
|
||||
scripts/build-wasmhost.sh
|
||||
|
||||
# Build the Rust host (host-wasm/target/release/chandra-host): the fallback, compiles wasmtime (about 2 minutes cold).
|
||||
host-wasm:
|
||||
cd host-wasm && cargo build --release
|
||||
|
||||
Reference in new issue
Block a user