Hey there - just starting out with wit-bindgen. There's a package
keyword required with its parameters as foo:foo
(for example). I'm not able to find any doc on what these foos refer to. I can see that a "world" is a component, so perhaps the package is a collection of worlds? But then what would be the :foo
? Thanks.
TBH I’m also confused by what is meant by a world. The wasi wit files use names like “example”.
Worlds are collections of imported and/or exported interfaces. They can be abstract, defining a contract between components, or concrete, describing a particular component's actual imports/exports. They are called "worlds" because they describe a component's "entire world" in terms of interactions with other components / its host.
@Christopher Hunt for a breakdown of what is part of the package identifier, this PR describes the meaning of each segment: https://github.com/WebAssembly/component-model/pull/198/files#diff-4853dcfce4501ba0f387ca3885f38ac65dc38cc79e4ef16192213d94bce28517R30
This proposal could help too
Thank you!
Last updated: Dec 23 2024 at 12:05 UTC