From 6fb0b0d49cffdc9514a99fcd843d8c122b4840f3 Mon Sep 17 00:00:00 2001 From: Kate Goldenring Date: Wed, 15 Apr 2026 11:51:17 -0700 Subject: [PATCH 1/2] fix: mention Wasmtime C API in C tutorial Signed-off-by: Kate Goldenring --- .../building-a-simple-component/c.md | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/component-model/src/language-support/building-a-simple-component/c.md b/component-model/src/language-support/building-a-simple-component/c.md index 3dbc38db..f3f876f4 100644 --- a/component-model/src/language-support/building-a-simple-component/c.md +++ b/component-model/src/language-support/building-a-simple-component/c.md @@ -325,18 +325,7 @@ if you followed the manual instructions above): ## 7. Run the component from C/C++ Applications -It is not yet possible to run a WebAssembly Component using the `wasmtime` C API. -See [`wasmtime` issue #6987](https://github.com/bytecodealliance/wasmtime/issues/6987) for more details. -The C API is preferred over directly using the example host Rust crate in C++. - -However, C/C++ language guest components can be composed with components written in any other language -and run by their toolchains, -or even composed with a C language command component and run via the `wasmtime` CLI -or any other host. - -See the [Rust Tooling guide](./rust.md#running-a-component-from-rust-applications) -for instructions on how to run this component from the Rust `example-host` -(replacing the path to `add.wasm` with your `adder.wasm` or `adder.component.wasm` above). +You can use [Wasmtime's C API](https://docs.wasmtime.dev/c-api/) to enbed wasmtime into your C application and run components. [!NOTE]: # [!WARNING]: # From 66fb457a601ca54c22a0eaaa13e6f3af10f63a79 Mon Sep 17 00:00:00 2001 From: Kate Goldenring Date: Thu, 16 Apr 2026 13:02:24 -0400 Subject: [PATCH 2/2] Apply suggestion from @vados-cosmonic Co-authored-by: Victor Adossi <123968127+vados-cosmonic@users.noreply.github.com> --- .../src/language-support/building-a-simple-component/c.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/component-model/src/language-support/building-a-simple-component/c.md b/component-model/src/language-support/building-a-simple-component/c.md index f3f876f4..b32634ec 100644 --- a/component-model/src/language-support/building-a-simple-component/c.md +++ b/component-model/src/language-support/building-a-simple-component/c.md @@ -325,7 +325,7 @@ if you followed the manual instructions above): ## 7. Run the component from C/C++ Applications -You can use [Wasmtime's C API](https://docs.wasmtime.dev/c-api/) to enbed wasmtime into your C application and run components. +You can use [Wasmtime's C API](https://docs.wasmtime.dev/c-api/) to embed wasmtime into your C/C++ application and run components. [!NOTE]: # [!WARNING]: #