Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ostcar/roc-wasi-platform
https://github.com/ostcar/roc-wasi-platform
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/ostcar/roc-wasi-platform
- Owner: ostcar
- License: mit
- Created: 2023-11-30T17:00:37.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2023-12-05T14:11:11.000Z (11 months ago)
- Last Synced: 2024-02-12T15:17:16.855Z (9 months ago)
- Language: Zig
- Size: 8.79 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- roc-awesome - ostcar/roc-wasi-platform
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
```