What is package root:root
or World root
#1974
-
Whenever I compile a WASM component and use
I wrote |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
What you're seeing here is an artifact of how the componentization process works. Each source language that goes into a single component encodes information in a custom section of the WIT that it used. This also happens for each library in each language. That means that a core wasm coming out of LLD and LLVM may have multiple custom sections describing WIT types. The So effectively what you're seeing here is the merging process. That works by starting with an empty When you create an actual component, the |
Beta Was this translation helpful? Give feedback.
What you're seeing here is an artifact of how the componentization process works. Each source language that goes into a single component encodes information in a custom section of the WIT that it used. This also happens for each library in each language. That means that a core wasm coming out of LLD and LLVM may have multiple custom sections describing WIT types. The
wasm-tools component
subcommand then is tasked with merging all of these sections and pieces of type information into oneworld
which represents the final component itself.So effectively what you're seeing here is the merging process. That works by starting with an empty
world
of a synthesized name (packageroot:root
and the…