Skip to content

Commit 2d24a20

Browse files
Update component-model/src/language-support/using-http-in-components/rust.md
Co-authored-by: Victor Adossi <123968127+vados-cosmonic@users.noreply.github.com>
1 parent ef99ff9 commit 2d24a20

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

  • component-model/src/language-support/using-http-in-components

component-model/src/language-support/using-http-in-components/rust.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,9 @@ cargo build --release --target wasm32-wasip2
8888
The resulting `.wasm` file will be compiled in `target/wasm32-wasip2/release/wasm-http-hello-world.wasm`.
8989

9090

91-
Run the following Wasmtime command, it will spin-up an HTTP server on [`http://0.0.0.0:8080`](http://0.0.0.0:8080/) that redirect requests to instances of our component.
91+
To run the component, we can use [`wasmtime`](https://github.com/bytecodealliance/wasmtime/), a reference implementation host that supports the Component Model.
92+
93+
In particular, we can use `wasmtime serve` subcommand, which will spin-up an HTTP server at `http://localhost:8080` which will use our component to fulfill web requests. `wasmtime` creates a *fresh* instance of the component every time a request is served.
9294

9395

9496
```console

0 commit comments

Comments
 (0)