The instructions suggest that you have to target wasi when building and provide file name

# Compile and run directly.

$ onyx run hello.onyx

Hello, World!

# This time target 'WASI'.

$ onyx build -r wasi -o hello.wasm hello.onyx

# Run using Wasmer.

$ wasmer run hello.wasm

Hello, World!

Reply to this note

Please Login to reply.

Discussion

No replies yet.