Skip to main content

engine_world

Function engine_world 

Source
pub fn engine_world(
    inputs: &[WitInput],
    backend: Backend,
) -> Result<EngineWorld>
Expand description

Build the engine world for inputs.

Every input world is merged into one world which additionally exports jco:script-engine/script-loader. Shared packages, such as wasi:cli, are unified when the inputs agree on their contents. Conflicting items with the same name, or two exported interfaces that would share a JavaScript export name, are errors: the engine has to present a single namespace to its scripts.