Skip to content

Conversation

@topheman
Copy link
Owner

Upgrades multiple dependencies and build tools:

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
@topheman topheman self-assigned this Aug 18, 2025
@topheman topheman merged commit 90d6581 into master Aug 18, 2025
8 checks passed
@topheman topheman deleted the feat/upgrade-deps branch August 19, 2025 09:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants