Remove the Rust host (host-wasm)
CI / test (push) Canceled after 0s

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:
Claude committed 2026-11-26 04:19:19 +00:00
1 parent 024f18ce61
commit 41c6ec1135
31 files changed
+59 -5827

No files matched your search

+1 -1
View File
@@ -1,7 +1,7 @@
#!/usr/bin/env bash
# Build the compositor itself as a wasm component: build/compositor.wasm.
# It imports the chandra:host interfaces (wit/host) and exports `run`; the host (wasmhost/,
# build/wasmhost; or the Rust host-wasm/) provides the imports. Needs moon and wasm-tools.
# build/wasmhost) provides the imports. Needs moon and wasm-tools.
# scripts/build-compositor-wasm.sh
set -euo pipefail
ROOT="$(cd "$(dirname "$0")/.." && pwd)"; cd "$ROOT"
+8 -8
View File
@@ -1,14 +1,14 @@
#!/usr/bin/env bash
# Build on a sprites.dev sprite instead of locally, then pull the artifacts back:
# build/compositor.wasm, build/components/ and host-wasm/target/release/chandra-host.
# The sprite checks the tree out at the same absolute path as here, because host-wasm/build.rs
# bakes <checkout>/.pixi/envs/default/lib into the host's rpath.
# build/compositor.wasm, build/components/ and build/wasmhost.
# The sprite checks the tree out at the same absolute path as here, so paths in the build match
# (build/wasmhost's rpath points at the checkout's .pixi/envs/default/lib, relative to the binary).
# One-off sprite setup (apt dev libs, pixi, moon, wasm-tools, moon update): scripts/sprite-setup.sh.
# scripts/remote-build.sh [just-target ...] (default: host-wasm compositor-wasm modules)
# scripts/remote-build.sh [just-target ...] (default: wasmhost compositor-wasm modules)
set -euo pipefail
ROOT="$(cd "$(dirname "$0")/.." && pwd)"; cd "$ROOT"
SPRITE="${CHANDRA_SPRITE:-chandra-build}"
targets=("$@"); [ ${#targets[@]} -gt 0 ] || targets=(host-wasm compositor-wasm modules)
targets=("$@"); [ ${#targets[@]} -gt 0 ] || targets=(wasmhost compositor-wasm modules)
sp() { sprite exec -s "$SPRITE" "$@"; }
echo "== sync source to $SPRITE"
@@ -23,11 +23,11 @@ sp --no-stdin --dir "$ROOT" -- bash -c \
echo "== pull artifacts"
# `sprite file pull` rather than a tar stream over exec: a streamed binary can break on reconnect.
# -r on a directory fails, so pull build/components/ file by file.
mkdir -p build/components host-wasm/target/release
mkdir -p build/components
pull() { sprite file pull -s "$SPRITE" -p "$@"; }
pull "$ROOT/build/compositor.wasm" build/
pull "$ROOT/host-wasm/target/release/chandra-host" host-wasm/target/release/
pull "$ROOT/build/wasmhost" build/
mods=(); while IFS= read -r f; do mods+=("$ROOT/build/components/$f"); done \
< <(sp --no-stdin --dir "$ROOT" -- ls build/components | grep -E '\.(wasm|json)$')
pull "${mods[@]}" build/components/
ls -la build/compositor.wasm host-wasm/target/release/chandra-host
ls -la build/compositor.wasm build/wasmhost
+1 -1
View File
@@ -15,4 +15,4 @@ install /tmp/wasm-tools-1.258.0-x86_64-linux/wasm-tools ~/.local/bin/
# moon
curl -fsSL https://cli.moonbitlang.com/install/unix.sh | bash >/dev/null 2>&1 || true
export PATH=$HOME/.pixi/bin:$HOME/.moon/bin:$HOME/.local/bin:$PATH
pixi -V; wasm-tools -V; moon version | head -1; cargo -V; ls /usr/include/libseat.h
pixi -V; wasm-tools -V; moon version | head -1; ls /usr/include/libseat.h