types.rs
incompatibility, not clear which should be used
#85
Labels
documentation
Improvements or additions to documentation
The generated
rust-wasmer-runtime/types.rs
andrust-plugin/src/types.rs
both contain types for the same structs. However, they are not compatible.When I tried compiling the generated example runtime, cargo was nagging about receiving the wrong
ComplexGuestToHost
type inrust-wasmer-runtime/bindings.rs
. I was able to fix this by changing the imports inrust-wasmer-runtime/bindings.rs
, changing them fromsuper::*
(which, I assume, links torust-wasmer-runtime/types.rs
) torust-plugin/src/types.rs
.In my case, I changed my import in my generated runtime to this:
But maybe the real solution is to fix the difference in generated type vs original type. I don't know.
The text was updated successfully, but these errors were encountered: