Module wasmtime_environ::fact

source ·
Expand description

Wasmtime’s Fused Adapter Compiler of Trampolines (FACT)

This module contains a compiler which emits trampolines to implement fused adapters for the component model. A fused adapter is when a core wasm function is lifted from one component instance and then lowered into another component instance. This communication between components is well-defined by the spec and ends up creating what’s called a “fused adapter”.

Adapters are currently implemented with WebAssembly modules. This submodule will generate a core wasm binary which contains the adapters specified during compilation. The actual wasm is then later processed by standard paths in Wasmtime to create native machine code and runtime representations of modules.

Note that identification of precisely what goes into an adapter module is not handled in this file, instead that’s all done in translate/adapt.rs. Otherwise this module is only responsible for taking a set of adapters and their imports and then generating a core wasm module to implement all of that.

Structs§

  • Representation of an adapter module.

Enums§

  • Possible imports into an adapter module.