Pulcedocs

WASM Components

The existing isolated runtime and its actual boundaries.

On this page

Implementation

  • core/hostabi: manifests, capabilities and wire contracts.
  • internal/modulehost: Go host adapters and supervision.
  • runtime/wasmworker: process-isolated Wasmtime worker; wit/ contains source contracts.

Deployment

Each direct child of plugins/ contains plugin.json and a component. foreign.allowed is mandatory server policy; manifests cannot grant themselves capabilities. The operator selects the worker.

Production manifests require component-world-v2; Rust bindings use scheduler-plugin-v2. Older WIT worlds do not guarantee admission of old components. Additional worlds need matching adapters and exports.

runtime/wasmworker
cargo build --locked --release
cargo clippy --locked --all-targets -- -D warnings

Isolation and limits

The component inherits no filesystem, environment, network, stdio or arguments. Fuel, memory and deadlines bound guests, but fuel cannot interrupt a blocking native import. Configure positive init_fuel/callback_fuel and max_component_bytes within process_memory_bytes.

Coverage

Plugin services are bounded request/response. The service-handler export is optional; without it provider registration is unavailable.