Function wit_parser::decoding::decode_world

source ยท
pub fn decode_world(wasm: &[u8]) -> Result<(Resolve, WorldId)>
Expand description

Decodes the single component type world specified as a WIT world.

The world should be an exported component type. The world must have been previously created via encode_world meaning that it is a component that itself imports nothing and exports a single component, and the single component export represents the world. The name of the export is also the name of the package/world/etc.