Skip to content

Custom trigger with other WASI worlds requires trait implementation for spin_core::Data<T> #2605

@smndtrl

Description

@smndtrl

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions