Skip to content

What's the idea behind the API design of the import! macro? #38

@ChetanBhasin

Description

@ChetanBhasin

So I'm able to understand that bindings are generated by the export! macro so that when the code is compiled to WASM, one is able to use the functions written in Rust to match the signature of the WAI syntax.

However, I don't understand how exactly the import! macro does. Sure, it generates the bindings so you could call the function but .wasm file with the actual code to be able to execute it. Where does that come from exactly because the current API seems to provide the functions directly, it seems.

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