Skip to content

Commit 241a2f3

Browse files
committed
chore(pluginlab): upgrade wasmtime from v33 to v35 + fix compile errors
The add_to_linker function calls were failing type inference because the compiler couldn't determine the generic parameter D that represents the data access pattern. - Add explicit type annotations for PluginApi::add_to_linker using HasSelf<PluginHost> to specify that the host state provides access to PluginHost - Add explicit type annotations for HostApi::add_to_linker using HasSelf<WasiState> to specify that the host state provides access to the entire WasiState This resolves the "type annotations needed" compilation errors by satisfying the HasData trait bounds required by Wasmtime's component model. Fixes: E0283 type inference errors in engine.rs
1 parent 6009a77 commit 241a2f3

File tree

3 files changed

+188
-169
lines changed

3 files changed

+188
-169
lines changed

0 commit comments

Comments
 (0)