Skip to content

Exposing functions from Rust to WASM #148

@XBagon

Description

@XBagon

I'm having a hard time figuring out how I would be able to expose a function to the VM, so I can call it from the wasm code. I found stuff like Imports and looked a bit into the code, ending up trying to write my own Resolver, but then failed to do it cause I'm really not sure how to create an Export::Function and then link it to a Rust function. The documentation is kinda confusing and the tutorials seem only to cover direct usage as a binary. I would appreciate help very much!

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