You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Trying to create a custom trigger, I'm unsuccessful with linking a custom world during the configure_engine step requires me to implement my WasiCustomView for spin_core::Data<CustomRuntimeData>. Implementing WasiCustomView for CustomRuntimeData is not enough. Am I missing something obvious here?
I'm using v2.6.0, wasmtime 21 and wasi_custom_rs also uses 21 for bindgen.
let _ = builder.link_import(| l, _| {
wasi_custom_rs::add_custom_to_linker(l);});
the trait bound `spin_core::Data<CustomRuntimeData>: WasiCustomView` is not satisfied
The text was updated successfully, but these errors were encountered:
This is a limitation of spin-core's design; you can't implement traits on Store's root data type, so an add_to_linker function that requires that won't work.
The upcoming "Spin Factors" design should work for your specific scenario (though only incidentally; the custom interface itself couldn't be a factor).
Trying to create a custom trigger, I'm unsuccessful with linking a custom world during the
configure_engine
step requires me to implement myWasiCustomView
forspin_core::Data<CustomRuntimeData>
. Implementing WasiCustomView for CustomRuntimeData is not enough. Am I missing something obvious here?I'm using
v2.6.0
, wasmtime 21 and wasi_custom_rs also uses 21 for bindgen.The text was updated successfully, but these errors were encountered: