Skip to content

moonbit-libyuelibyue bindings for MoonBit

One MoonBit codebase, native desktop windows on Windows / Linux / macOS — zero config after moon add.

Quick start ​

sh
moon add NoahLiu/moonbit-libyue
moonbit
fn 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.