Stream: C#/.net-collaboration

Topic: ✔ Using a wasm component in dotnet


view this post on Zulip Milan (rajsite) (Aug 06 2024 at 06:19):

Is there an equivalent to jco transpile / wastime-py bindgen for dotnet to create a nice assembly that calls a wasm component?

view this post on Zulip Joel Dice (Aug 06 2024 at 07:07):

I haven't tried it myself, but there's https://github.com/bytecodealliance/wasmtime-dotnet

.NET embedding of Wasmtime https://bytecodealliance.github.io/wasmtime-dotnet/ - bytecodealliance/wasmtime-dotnet

view this post on Zulip Joel Dice (Aug 06 2024 at 07:07):

I know @James Sturtevant has been doing some maintenance work on it.

view this post on Zulip Milan (rajsite) (Aug 06 2024 at 15:04):

I see, looks like wasmtime-dotnet is the right place to look (not a separate package like jco) and based on the open issue might not be ready yet: https://github.com/bytecodealliance/wasmtime-dotnet/issues/324

Context https://github.com/bytecodealliance/wasmtime/tree/main/examples/component Add support for making the same example from C#. https://github.com/WebAssembly/component-model/tree/main https://g...

view this post on Zulip James Sturtevant (Aug 06 2024 at 17:23):

I done just alittle maintaince to make sure the project still works and releases. I don't have a ton of expereince in it, From my understanding we maybe missing some bindings to enable it. If you wanted to take a closer look I would be happy to review a PR

view this post on Zulip Joel Dice (Aug 06 2024 at 19:28):

It's probably in the same boat as other Wasmtime wrappers based on the Wasmtime C API, which doesn't include component support yet. Wasmtime-py has partial component support by doing its own component decomposition before passing it to Wasmtime proper, so we'd need to either do that for .NET or add component support to the C API.

view this post on Zulip James Sturtevant (Aug 06 2024 at 21:15):

ah, that explains why I didn't see the apis in the c API :-). what does partial component support mean? Sounds like adding it to the c-api would enable it fully for multiple lanaguages?

view this post on Zulip Milan (rajsite) (Aug 06 2024 at 22:20):

Looks like this is the issue for the wasmtime C API for component model support: https://github.com/bytecodealliance/wasmtime/issues/8036
Looks like it blocks .NET support based on the thread discussion. Think it also blocks the language I was going to experiment with adding it to as well (which has nice .NET and C FFIs).

Feature Expose the component model in the C API for other languages than Rust. Benefit Components in all the languages! (on the host side) Implementation I have a POC I created here with some feedb...

view this post on Zulip Notification Bot (Aug 06 2024 at 22:34):

Milan has marked this topic as resolved.


Last updated: Dec 13 2025 at 20:04 UTC