Module wasmer_c_api::wasm_c_api::unstable::features
source · 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§
- Controls which experimental features will be enabled. Features usually have a corresponding WebAssembly proposal.
Functions§
- Configures whether the WebAssembly bulk memory operations proposal will be enabled.
- Delete a
wasmer_features_t
. - Configures whether the WebAssembly 64-bit memory proposal will be enabled.
- Configures whether the WebAssembly tail-call proposal will be enabled.
- Configures whether the WebAssembly multi-memory proposal will be enabled.
- Configures whether the WebAssembly multi-value proposal will be enabled.
- Creates a new
wasmer_features_t
. - Configures whether the WebAssembly reference types proposal will be enabled.
- Configures whether the WebAssembly SIMD proposal will be enabled.
- Configures whether the WebAssembly tail-call proposal will be enabled.
- Configures whether the WebAssembly threads proposal will be enabled.