pub fn targets(
resolve: &Resolve,
world: WorldId,
component_to_test: &[u8],
semver_compatible: bool,
) -> 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.
When semver_compatible is set, interfaces are matched by their canonical
names, so semver-compatible versions (e.g. wasi:cli@0.2.3 and
wasi:cli@0.2.0) are matched with each other and then type-checked
structurally.