Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wasm-compose: implement a new CompositionGraph API. #807

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 3 additions & 3 deletions crates/wasm-compose/CONFIG.md
Expand Up @@ -72,7 +72,7 @@ An instantiation has the following fields:
arguments; argument names match the names of the imports of the dependency being
instantiated.

Note that the instantiation name `$component` is special and signifies how the input
Note that the instantiation name `$input` is special and signifies how the input
component is to be instantiated.

### Instantiation arguments
Expand All @@ -97,7 +97,7 @@ A slightly complex example of configuring instantiations:

```yaml
instantiations:
$component:
$input:
arguments:
a: b
b:
Expand All @@ -109,7 +109,7 @@ instantiations:
dependency: f
```

In the above example, the `$component` instantiation (i.e. the root instantiation) has explicitly
In the above example, the `$input` instantiation (i.e. the root instantiation) has explicitly
specified that the argument named `a` is to be provided instance `b`.

It also defines an instantiation named `b` which is to be passed an instance export named `e`
Expand Down
1 change: 1 addition & 0 deletions crates/wasm-compose/Cargo.toml
Expand Up @@ -21,6 +21,7 @@ petgraph = "0.6.2"
log = { workspace = true }
serde_yaml = "0.8.26"
clap = { workspace = true, optional = true }
smallvec = "1.10.0"

[features]
default = []
Expand Down
2 changes: 1 addition & 1 deletion crates/wasm-compose/example/server/config.yml
Expand Up @@ -2,6 +2,6 @@ search-paths:
- ../service/target/wasm32-unknown-unknown/release

instantiations:
$component:
$input:
arguments:
backend: svc