package wasmtime

  1. Overview
  2. Docs
Wasmtime bindings for OCaml

Install

Dune Dependency

Authors

Maintainers

Sources

v0.0.1c.tar.gz
md5=430db93c83b112f1adedef0f230d1986
sha512=c578e0b346ba981f4dadac9a35b9e271843880fea88826c83687c5651d6f0b5fda00d5ceb4c019dd961e0a748a05f39be633cbf8eda3ab6c7204e2f5ca82d11e

Description

Bindings for Wasmtime, a small and efficient runtime for WebAssembly.

Published: 07 Dec 2020

README

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.

Dependencies (8)

  1. stdio
  2. ocaml >= "4.10"
  3. libwasmtime >= "0.21.0" & < "0.22.0"
  4. dune-configurator
  5. dune >= "2.7.0"
  6. ctypes-foreign
  7. ctypes >= "0.5"
  8. base >= "v0.13.0" & < "v0.17"

Dev Dependencies (1)

  1. ppx_expect >= "v0.13.0" & < "v0.15" & with-test

Used by

None

Conflicts

None

OCaml

Innovation. Community. Security.