wasm-rquickjs-cli 0.0.5

Tool for wrapping JavaScript modules as WebAssembly components using the QuickJS engine
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
package quickjs:example3;

interface iface {
  resource hello {
    constructor(name: string);
    get-name: func() -> string;
    compare: static func(h1: borrow<hello>, h2: borrow<hello>) -> s32;
    merge: static func(h1: own<hello>, h2: own<hello>) -> hello;
  }

  dump: func(h: option<borrow<hello>>) -> string;
  dump-all: func(hs: list<borrow<hello>>) -> string;
}

world example3 {
  export iface;
}