Function wasmer_c_api::wasm_c_api::unstable::features::wasmer_features_reference_types
source · #[no_mangle]
pub extern "C" fn wasmer_features_reference_types(
features: Option<&mut wasmer_features_t>,
enable: bool
) -> bool
Expand description
Configures whether the WebAssembly reference types proposal will be enabled.
The WebAssembly reference types proposal is not currently fully standardized and is undergoing development. Support for this feature can be enabled through this method for appropriate WebAssembly modules.
This feature gates items such as the externref
type and multiple tables
being in a module. Note that enabling the reference types feature will
also enable the bulk memory feature.
This is false
by default.
Example
See the module’s documentation.