Wasmtime
wasm_engine_t Struct Reference

Compilation environment and configuration. More...

#include <doc-wasm.h>

Detailed Description

Compilation environment and configuration.

An engine is typically global in a program and contains all the configuration necessary for compiling wasm code. From an engine you'll typically create a wasmtime_store_t. Engines are created with wasm_engine_new or wasm_engine_new_with_config.

An engine is safe to share between threads. Multiple stores can be created within the same engine with each store living on a separate thread. Typically you'll create one wasm_engine_t for the lifetime of your program.

Engines are reference counted internally so wasm_engine_delete can be called at any time after a wasmtime_store_t has been created from one.


The documentation for this struct was generated from the following file: