Skip to content

Commit c55b01a

Browse files
committed
adding in moonbit example
1 parent 705c4c5 commit c55b01a

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

moonbit/README.md

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
MoonBit Unikernel Hello World
2+
================
3+
4+
```
5+
moon new hello
6+
cd hello
7+
moon run src/main
8+
```
9+
10+
Note: 'moon run' does both compile && run which execs so we just compile
11+
first and then execute the runner instead:
12+
13+
```
14+
ops run -c config.json ~/.moon/bin/moonrun
15+
```

moonbit/config.json

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"Dirs": ["src", "target", ".mooncakes"],
3+
"Args": ["target/wasm-gc/release/build/main/main.wasm"],
4+
"Files": ["moon.mod.json"]
5+
}

0 commit comments

Comments
 (0)