Crate wasmer_c_api[][src]

Wasmer C API.

Wasmer is the leading WebAssembly runtime. Wasmer is written in Rust; this crate exposes its C and C++ bindings.

This crate provides 2 different API:

  1. deprecated, which is the old one, and is represented by the wasmer.h and the wasmer.hh C and C++ header files,
  2. wasm_c_api, which is the new standard C API, and is represented by the wasmer_wasm.h C header file.

The wasm_c_api follows the official WebAssembly C API. This standard can be characterized as a living standard. The API is not yet stable, even though it shows maturity over time. It is described by the wasm.h C header file. However, the wasm_c_api API provides some extensions, like the wasi_* or wasmer_* types and functions, which aren't yet defined by the standard. The wasmer_wasm.h header file already depends on the wasm.h file. A copy lands in this repository for the sake of simplicity.

It is recommended to use the wasm_c_api API, despites it is not yet officially stabilized, over the deprecated API, which is more stable but less powerful and in a maintainance state.

Modules

deprecated

Wasmer Runtime C API

error

Utilities to read errors.

wasm_c_api

Implementation of the official WebAssembly C API for Wasmer.

Macros

c_try