1#ifndef WASMTIME_COMPONENT_COMPONENT_H
2#define WASMTIME_COMPONENT_COMPONENT_H
8#ifdef WASMTIME_FEATURE_COMPONENT_MODEL
15typedef struct wasmtime_component_t wasmtime_component_t;
17#ifdef WASMTIME_FEATURE_COMPILER
40wasmtime_component_new(
const wasm_engine_t *engine,
const uint8_t *buf,
41 size_t len, wasmtime_component_t **component_out);
57wasmtime_component_serialize(
const wasmtime_component_t *component,
73wasmtime_component_deserialize(
const wasm_engine_t *engine,
const uint8_t *buf,
75 wasmtime_component_t **component_out);
92wasmtime_component_deserialize_file(
const wasm_engine_t *engine,
94 wasmtime_component_t **component_out);
100WASM_API_EXTERN wasmtime_component_t *
101wasmtime_component_clone(
const wasmtime_component_t *component);
109WASM_API_EXTERN
void wasmtime_component_delete(wasmtime_component_t *component);
Build-time defines for how the C API was built.
Definition and accessors of wasmtime_error_t.
A list of bytes.
Definition: wasm.h:102
Compilation environment and configuration.
Errors generated by Wasmtime.