| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
An experimental implementation of the WebAssembly System Interface designed to run on Cloudflare Workers
import { WASI } from '@cloudflare/workers-wasi';
import mywasm from './mywasm.wasm';
const wasi = new WASI();
const instance = new WebAssembly.Instance(mywasm, {
wasi_snapshot_preview1: wasi.wasiImport
});
await wasi.start(instance);nvm use --lts
Build and test
git clone --recursive git@github.com:cloudflare/workers-wasi.git cd ./workers-wasi make -j test
git clone --recursive git@github.com:cloudflare/workers-wasi.git cd ./workers-wasi cat ./Dockerfile | docker build -t workers-wasi-build - docker run --rm -it -v $(pwd):/workers-wasi workers-wasi-build
We aim to be interchangeable with other WASI implementations. Integration tests are run locally using Miniflare against the following test suites:
An ephemeral filesystem implementation built on littlefs is included. Both soft and hard links are not yet supported.
The following syscalls are not yet supported and return ENOSYS
Timestamps are captured using Date.now() which has unique behavior on the Workers platform for security reasons. This affects the implementation of
Misc TODO:
| Back | FazBrowse Home | New Git URL |