Expand description
Unstable non-standard Wasmer-specific API that contains a Features API for the engine and the compiler.
§Example
int main() {
// Declare features.
wasmer_features_t* features = wasmer_features_new();
// Now, let's enable de SIMD feature.
wasmer_features_simd(features, true);
// And also the memory64 feature.
wasmer_features_memory64(features, true);
wasmer_features_delete(features);
return 0;
}To go further, see
wasm_config_set_features.
Structs§
- wasmer_
features_ t - Controls which experimental features will be enabled. Features usually have a corresponding WebAssembly proposal.
Functions§
- wasmer_
features_ bulk_ memory - Configures whether the WebAssembly bulk memory operations proposal will be enabled.
- wasmer_
features_ delete - Delete a
wasmer_features_t. - wasmer_
features_ memory64 - Configures whether the WebAssembly 64-bit memory proposal will be enabled.
- wasmer_
features_ module_ linking - Configures whether the WebAssembly tail-call proposal will be enabled.
- wasmer_
features_ multi_ memory - Configures whether the WebAssembly multi-memory proposal will be enabled.
- wasmer_
features_ multi_ value - Configures whether the WebAssembly multi-value proposal will be enabled.
- wasmer_
features_ new - Creates a new
wasmer_features_t. - wasmer_
features_ reference_ types - Configures whether the WebAssembly reference types proposal will be enabled.
- wasmer_
features_ simd - Configures whether the WebAssembly SIMD proposal will be enabled.
- wasmer_
features_ tail_ call - Configures whether the WebAssembly tail-call proposal will be enabled.
- wasmer_
features_ threads - Configures whether the WebAssembly threads proposal will be enabled.