bytecodealliance / wasmtime-dotnet

.NET embedding of Wasmtime https://bytecodealliance.github.io/wasmtime-dotnet/
Apache License 2.0
409 stars 51 forks source link

Component model support #324

Open JanProvaznik opened 3 weeks ago

JanProvaznik commented 3 weeks ago

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://github.com/bytecodealliance/componentize-dotnet

Current state:

Only Wasm modules can be instantiated and functions ran from them. Loading .wasm file which is compiled as a component into a Module fails.

Steps

[ ] running components [ ] imports and exports (with WIT data types) [ ] converting modules to components [ ] multiple components interacting

Remarks

This is blocked by https://github.com/bytecodealliance/wasmtime/issues/8036#issuecomment-2180272305

jsturtevant commented 3 weeks ago

Now that we released wasmtime v22 support, we should have the right version but may need to expose some new apis

JanProvaznik commented 1 week ago

Related: other language bindings have varying support https://github.com/bytecodealliance/wasmtime-py/issues/245 https://github.com/bytecodealliance/wasmtime-go/issues/204 https://github.com/bytecodealliance/wasmtime/pull/7801