bytecodealliance / wasmtime-dotnet

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

Component model support #324

Open JanProvaznik opened 4 months ago

JanProvaznik commented 4 months 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 4 months ago

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

JanProvaznik commented 4 months 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

jsturtevant commented 3 months ago

Since we use the c-api we need https://github.com/bytecodealliance/wasmtime/issues/8036.