Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Wasmer Runtime C API
Wasmer is a standalone JIT WebAssembly runtime, aiming to be fully compatible with WASI, Emscripten, Rust and Go. Learn more.
This crate exposes a C and a C++ API for the Wasmer runtime.
Usage
The C and C++ header files can be found in the source tree of this
crate, respectively wasmer.h
and
wasmer.hh
. They are automatically generated, and always
up-to-date in this repository.
The runtime shared library (so, dll, dylib) can also be downloaded in Wasmer release page.
You can find the full C API documentation here: https://wasmerio.github.io/wasmer/c/runtime-c-api/
Here is a simple example to use the C API:
int
Testing
Tests are run using the release build of the library. If you make changes or compile with non-default features, please ensure you rebuild in release mode for the tests to see the changes.
The tests can be run via cargo test
, such as:
To run tests manually, enter the lib/runtime-c-api/tests
directory
and run the following commands:
License
Wasmer is primarily distributed under the terms of the MIT license (LICENSE).