Skip to content

Commit 6475a43

Browse files
committed
nits
1 parent fc5435f commit 6475a43

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

component-model/src/introduction.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ The WebAssembly Component Model is a broad-reaching architecture for building in
55
| Understanding components | Building components | Using components |
66
|--------------------------|----------------------|-------------------|
77
| [Why Components?] | [C/C++] | [Composing] |
8-
| [Components] | [C#] | [Distributing] |
9-
| [Interfaces] | [Go] | |
8+
| [Components] | [C#] | [Running] |
9+
| [Interfaces] | [Go] | [Distributing] |
1010
| [Worlds] | [JavaScript] | |
1111
| | [Python] | |
1212
| | [Rust] | |
@@ -24,7 +24,7 @@ The WebAssembly Component Model is a broad-reaching architecture for building in
2424
[Rust]: ./language-support/rust.md
2525

2626
[Composing]: ./composing-and-distributing/composing.md
27-
[Running]: ./running-components/running.md
27+
[Running]: ./running-components.md
2828
[Distributing]: ./composing-and-distributing/distributing.md
2929

3030
> [!NOTE]

component-model/src/running-components/wasmtime.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Wasmtime
22

3-
[Wasmtime](https://github.com/bytecodealliance/wasmtime/) is the reference implementation of the Component Model. It supports running components that implement the [`wasi:cli/command` world](https://github.com/WebAssembly/wasi-cli/blob/main/wit/command.wit) and serving components that implement the [`wasi:http/proxy` world](https://github.com/WebAssembly/wasi-http/blob/main/wit/proxy.wit). It can also invoke functions exported from a component.
3+
[Wasmtime](https://github.com/bytecodealliance/wasmtime/) is the reference implementation of the Component Model. It supports running components that implement the [`wasi:cli/command` world](https://github.com/WebAssembly/wasi-cli/blob/main/wit/command.wit) and serving components that implement the [`wasi:http/proxy` world](https://github.com/WebAssembly/wasi-http/blob/main/wit/proxy.wit). Wasmtime can also invoke functions exported from a component.
44

55
## Running command components with Wasmtime
66
To run a command component with Wasmtime, execute:
@@ -34,6 +34,7 @@ As of Wasmtime Version 33.0.0, there is [support for invoking custom component e
3434

3535
As an example, if your component exports a function `add` which takes two numeric arguments, you can make use of this feature with the following command.
3636

37-
`wasmtime run --invoke 'foo(1, 2)' <path-to-wasm-file>`
38-
37+
```sh
38+
wasmtime run --invoke 'foo(1, 2)' <path-to-wasm-file>
39+
```
3940
Make sure to wrap your invocation in single quotes abd to include parentheses, even if your function doesn't take any arguments. For a full list of ways to represent the various wit types when passing arguments to your exported function, visit the [WAVE repo](https://github.com/bytecodealliance/wasm-tools/tree/main/crates/wasm-wave).

0 commit comments

Comments
 (0)