Expand description
Spin core execution engine
This crate provides low-level Wasm and WASI functionality required by Spin.
Most of this functionality consists of wrappers around wasmtime
and
[wasi_common
] that narrows the flexibility of wasmtime
to the set of
features used by Spin (such as only supporting wasmtime
’s async calling style).
Re-exports§
pub use wasmtime;
Structs§
- An opaque handle which can be passed to
HostComponentsData
to access host component data. - A compiled WebAssembly Component.
- Global configuration for
EngineBuilder
. - An
Engine
is a global context for the initialization and execution of Spin components. - A builder interface for configuring a new
Engine
. - An opaque handle returned by
crate::EngineBuilder::add_host_component
which can be passed toHostComponentsData
to access or set associatedHostComponent::Data
. - Holds a heterogenous set of
HostComponent::Data
s. - An error returned from the
proc_exit
host syscall. - An instantiated component.
- A pre-initialized instance that is ready to be instantiated.
- A compiled WebAssembly module, ready to be instantiated.
- An instantiated WebAssembly module.
- A pre-initialized module instance that is ready to be instantiated.
- An in-memory stdio output buffer.
- A
Store
holds the runtime state of a Spin instance. - A builder interface for configuring a new
Store
.
Enums§
- Wrapper for the Preview 1 and Preview 2 versions of
WasiCtx
. - The version of Wasi being used
Constants§
- The default
EngineBuilder::epoch_tick_interval
.
Traits§
- A trait for Spin “host components”.
- Handler for wasi-http based requests
Type Aliases§
- An alias for
wasmtime::component::Linker
specialized toData
. - An alias for
wasmtime::Linker
specialized toData
.