wit_component

Function targets

Source
pub fn targets(
    resolve: &Resolve,
    world: WorldId,
    component_to_test: &[u8],
) -> Result<()>
Expand description

This function checks whether component_to_test correctly conforms to the world specified. It does so by instantiating a generated component that imports a component instance with the component type as described by the “target” world.