A small MoonBit dependency example with a friendly ASCII rabbit.
moon add moonbit-community/starterimport {
"moonbit-community/starter/rabbit",
}
pkgtype(kind: "executable")fn main {
@rabbit.hello()
} /---------------------------------------------------------\
| Congrats! You successfully added and used a dependency. |
\---------------------------------------------------------/
\
\
/)/)
( . .)
C(")_(")git clone https://github.com/moonbit-community/starter.git
cd starter
moon run cmd/mainmoon fmt --check
moon check --target all --deny-warn
moon test --target all --deny-warn
moon info --target all
git diff --exit-code -- '*.mbti'