Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ostcar/roc-wasi-platform


https://github.com/ostcar/roc-wasi-platform

Last synced: about 2 months ago
JSON representation

Awesome Lists containing this project

README

        

# Roc WASM Platform

roc wasi platform can be used by [roc](https://www.roc-lang.org/) to build wasi
modules.

```bash
cd examples/helloworld
roc build --target wasm32
wasmtime helloworld.wasm
```

## File example

```sh
$ roc build --target=wasm32 examples/file.roc
🔨 Rebuilding platform...
0 errors and 0 warnings found in 227 ms while successfully building:

examples/file.wasm

$ wasmtime --dir=examples/ examples/file.wasm
SUCCESS opened crash.roc

$ wasmtime --dir=. examples/file.wasm
ERROR unable to file
```