Repository navigation
Conversation
Each component is a directory in a directory of components, with the files of one named for its directory: `wit/<dir>.constants.wit`, `<dir>.properties`, `<dir>.wac`, `<dir>.plug`, `<dir>.wkg`, or a `Cargo.toml`. `components/` is a directory of components, and so is each directory with a `components.toml`, which names the prefix of its components, e.g. `examples/components.toml`: ```toml prefix = "example-" ``` A component is named for the prefix and its directory, and built into `target/components/<name>/`, e.g. `examples/hello/hello.wac` is `example-hello`, which composes components of `components/` as `local:<name>`. A component's directories that are components are a group, named for it, e.g. an internal component, its configuration, and their composition: ``` components/gate/ gate.wac gate, composing local:gate-internal and local:gate-config internal/ gate-internal, not published, see UNPUBLISHED_COMPONENTS config/ gate-config ``` A component built with cargo builds the package its `Cargo.toml` names, which may differ from the component's name. Two components with the same name are an error, e.g. `components/hello` and `examples/hello` without a prefix. Signed-off-by: Scott Andrews <scott@andrews.me>
Signed-off-by: Scott Andrews <scott@andrews.me>
Signed-off-by: Scott Andrews <scott@andrews.me>
Signed-off-by: Scott Andrews <scott@andrews.me>
Signed-off-by: Scott Andrews <scott@andrews.me>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Each component is a directory in a directory of components, with the files of one named for its directory:
wit/<dir>.constants.wit,<dir>.properties,<dir>.wac,<dir>.plug,<dir>.wkg, or aCargo.toml.components/is a directory of components, and so is each directory with acomponents.toml, which names the prefix of its components, e.g.examples/components.toml:A component is named for the prefix and its directory, and built into
target/components/<name>/, e.g.examples/hello/hello.wacisexample-hello, which composes components ofcomponents/aslocal:<name>. A component's directories that are components are a group, named for it, e.g. an internal component, its configuration, and their composition:A component built with cargo builds the package its
Cargo.tomlnames, which may differ from the component's name. Two components with the same name are an error, e.g.components/helloandexamples/hellowithout a prefix.