wac-cli 0.10.0

A tool for encoding and decoding WebAssembly compositions.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
package example:composition;

// Instantiate the `hello` component
let hello = new example:hello {};

// Instantiate the `greeter` component plugging its one `hello` import with 
// the `hello` export of the `hello` component.
let greeter = new example:greeter {
  hello: hello.hello,
};

// Export the greet function from the greeter component
export greeter.greet;