This is a project template for developing CLI application.
In addition to MoonBit toolchain, you will need:
- wasm-tools
- wasmtime
- (Optional) just
Execute just run to see the output, and execute just build release to get a release build under target/cli.wasm.
- Modify the
topfunction insrc/stub.mbtto implement your CLI application. - Modify the
runfunction if you need finer control on the event loop.