Function wasmer_c_api::wasm_c_api::engine::wasm_config_new
source · #[no_mangle]
pub extern "C" fn wasm_config_new() -> Box<wasm_config_t>
Expand description
Create a new default Wasmer configuration.
§Example
int main() {
// Create the configuration.
wasm_config_t* config = wasm_config_new();
// Create the engine.
wasm_engine_t* engine = wasm_engine_new_with_config(config);
// Check we have an engine!
assert(engine);
// Free everything.
wasm_engine_delete(engine);
return 0;
}
cbindgen:ignore