Module wasmer_c_api::wasm_c_api::unstable::features[][src]

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.