CI / test (push) Failing after 17s
wasmhost/ runs build/compositor.wasm with wasmtime linked as the upstream C API library (fetched by setup-toolchain.sh) instead of compiling it: a cold build is about 4 s against about 2 min for host-wasm. sys and font reuse the native compositor's packages; the rasteriser is a port of host-wasm/src/raster.rs with the pixel work in C, SVG through nanosvg. Panel modules, --drm and --window come next; host-wasm stays the working host until then. wit: sys.append-file. The C API moves list<u8> as one dynamic value per byte and wasmtime caps what one call may copy, so the component writes files over 1 MiB as write-file plus appends (host-wasm implements it too). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DPL5hiNfjrw2edja7LiRLB
49 lines
1.3 KiB
MoonBit
49 lines
1.3 KiB
MoonBit
///| Interfaces not served yet (filled in stage by stage).
|
|
|
|
///|
|
|
fn display_wait_fds() -> Array[Int] {
|
|
[]
|
|
}
|
|
|
|
|
|
|
|
///|
|
|
fn display_funcs() -> Array[(String, (Array[@wt.Val]) -> Array[@wt.Val])] {
|
|
[
|
|
("open", _ => [Option(None)]),
|
|
("poll", _ => [Bool(false)]),
|
|
("frame-ready", _ => [Bool(false)]),
|
|
("present", _ => none),
|
|
("present-frame", _ => none),
|
|
("set-cursor-shape", _ => none),
|
|
("take-input", _ => [List([])]),
|
|
("close", _ => none),
|
|
]
|
|
}
|
|
|
|
///|
|
|
fn plasmoid_funcs() -> Array[(String, (Array[@wt.Val]) -> Array[@wt.Val])] {
|
|
[
|
|
("load", _ => [Result(false, Some(Str("not yet")))]),
|
|
("unload", _ => none),
|
|
("set-tokens", _ => none),
|
|
("render", _ => [List([])]),
|
|
("popup", _ => [Option(None)]),
|
|
("on-event", _ => [Bool(false)]),
|
|
("config-items", _ => [List([])]),
|
|
("set-config", _ => [Bool(false)]),
|
|
("publish-table", _ => none),
|
|
("publish-state", _ => none),
|
|
("publish-wallpaper", _ => none),
|
|
("publish-session-settings", _ => none),
|
|
("publish-screenshot", _ => none),
|
|
("publish-system", _ => none),
|
|
("publish-windows", _ => none),
|
|
("next-request", _ => [Option(None)]),
|
|
("take-focus-request", _ => [Option(None)]),
|
|
("list-wasm-files", _ => [List([])]),
|
|
("picker-start", _ => [Bool(false)]),
|
|
("picker-poll", _ => [Variant("cancelled", None)]),
|
|
]
|
|
}
|