Skip to content

What is package root:root or World root #1974

Answered by alexcrichton
rowanfr asked this question in Q&A
Discussion options

You must be logged in to vote

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 one world 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 (package root:root and the…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@rowanfr
Comment options

@alexcrichton
Comment options

@rowanfr
Comment options

Answer selected by rowanfr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants