Skip to content

Sharing resource definition between a JS host and Rust guest #305

@fabricedesre

Description

@fabricedesre

I'm trying to build a system where the JS host can implement delegates and pass them to the Rust side - think about abstracting cryptographic operations to use the WebCrypto API in a browser for instance.

Unfortunately it looks like the 2 JS files generated don't play well together in that case. I put up a runnable demo at https://github.com/fabricedesre/wit-test

Is that a codegen limitation, or something more fundamental?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions