package wasmtime

  1. Overview
  2. Docs

ocaml-wasmtime

OCaml WebAssembly runtime powered by wasmtime

This library let you run WebAssembly modules within OCaml with some support for wasi for system calls. It acts as a low-level and typesafe wrapper around the wasmtime C library, only a subset of the functions are supported for now but it should be enough to run some basic examples, see the tests directory for details.

Installation

  • Download the wasmtime c-api library from the github repo.
  • Uncompress the archive and copy the include and lib directory in the wasmtime directory of this repo.
  • Run dune runtest to run the examples.

This has been tested with wasmtime v0.21.0 on a Linux platform.

OCaml

Innovation. Community. Security.