CI / test (push) Failing after 15s
components.txt listed it but no source existed, so just modules skipped it and the picker said 'Module manager not found'. Panel button + popup: loaded instances (click to unload), available modules (click to load), Browse... Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
45 lines
1.2 KiB
MoonBit
45 lines
1.2 KiB
MoonBit
// Generated by `wit-bindgen` 0.63.0. DO NOT EDIT!
|
|
|
|
///|
|
|
fn wasmImportAvailable(p0 : Int) = "moonplasma:desktop/modules@0.1.0" "available"
|
|
|
|
///|
|
|
fn wasmImportLoaded(p0 : Int) = "moonplasma:desktop/modules@0.1.0" "loaded"
|
|
|
|
///|
|
|
fn wasmImportLoadModule(p0 : Int, p1 : Int) = "moonplasma:desktop/modules@0.1.0" "load-module"
|
|
|
|
///|
|
|
fn wasmImportUnloadInstance(p0 : Int, p1 : Int) = "moonplasma:desktop/modules@0.1.0" "unload-instance"
|
|
|
|
///|
|
|
fn wasmImportBrowse() = "moonplasma:desktop/modules@0.1.0" "browse"
|
|
|
|
///|
|
|
extern "wasm" fn mbt_ffi_malloc(size : Int) -> Int =
|
|
#|(func (param i32) (result i32) (local i32)
|
|
#| local.get 0 i32.const 4 i32.add call $moonbit.gc.malloc
|
|
#| local.tee 1 i32.const 0 call $moonbit.init_array8
|
|
#| local.get 1)
|
|
|
|
///|
|
|
extern "wasm" fn mbt_ffi_load32(offset : Int) -> Int =
|
|
#|(func (param i32) (result i32) local.get 0 i32.load)
|
|
|
|
///|
|
|
extern "wasm" fn mbt_ffi_ptr2str(ptr : Int, len : Int) -> String =
|
|
#|(func (param i32) (param i32) (result i32)
|
|
#| local.get 0
|
|
#| local.get 1 call $moonbit.init_array16
|
|
#| local.get 0)
|
|
|
|
///|
|
|
extern "wasm" fn mbt_ffi_free(position : Int) =
|
|
#|(func (param i32) local.get 0 call $moonbit.decref)
|
|
|
|
///|
|
|
#owned(str)
|
|
extern "wasm" fn mbt_ffi_str2ptr(str : String) -> Int =
|
|
#|(func (param i32) (result i32) local.get 0)
|
|
|