Native, windows in a flash
A full binding of libyue (C++) — real native windows and widgets, ~7 MB binaries, ~80 ms startup.
One MoonBit codebase, native desktop windows on Windows / Linux / macOS — zero config after moon add.
moon add NoahLiu/moonbit-libyuefn main {
if !@yue.initialize() {
return
}
let _ = @declarative.mount_window(
[
@declarative.label("Hello, MoonBit + libyue!"),
@declarative.button("Quit", on_click=fn() { @yue.quit() }),
],
title="Hello",
center=true,
)
@yue.run()
}Remember to import NoahLiu/moonbit-libyue/yue/declarative for @declarative.* — the full package table is in the doc index.