The Wasmer Runtime C API exposes a C and a C++ API to interact with the Wasmer Runtime, so you can use WebAssembly anywhere.
Since the Wasmer runtime is written in Rust, the C and C++ API are designed to work hand-in-hand with its shared library. The C and C++ header files, namely
wasmer.hh are documented in the docs.
Their source code can be found in the source tree of the wasmer-runtime-c-api crate. The C and C++ header files along with the runtime shared libraries (
.dll) can also be downloaded in the Wasmer release page.
Here is a simple example to use the C API:
You can check more examples of how to use the Wasmer C API here: