Module wasmer_c_api::wasm_c_api::version [−][src]
Wasmer-specific API to get or query the version of this Wasm C API.
The wasmer_wasm.h
file provides the WASMER_VERSION
,
WASMER_VERSION_MAJOR
, WASMER_VERSION_MINOR
,
WASMER_VERSION_PATCH
and WASMER_VERSION_PRE
constants. However, in absence of this header file, it is possible
to retrieve the same information with their respective functions,
namely wasmer_version
,
wasmer_version_major
,
wasmer_version_minor
,
wasmer_version_patch
, and
wasmer_version_pre
.
Example
int main() { // Get and print the version. const char* version = wasmer_version(); printf("%s", version); // No need to free the string. It's statically allocated on // the Rust side. return 0; }
Functions
wasmer_version⚠ | Get the version of the Wasmer C API. |
wasmer_version_major⚠ | Get the major version of the Wasmer C API. |
wasmer_version_minor⚠ | Get the minor version of the Wasmer C API. |
wasmer_version_patch⚠ | Get the patch version of the Wasmer C API. |
wasmer_version_pre⚠ | Get the minor version of the Wasmer C API. |