Skip to content

Use in wasmtime or outside of browser #1670

@lastmjs

Description

@lastmjs

Hi, I'm trying to get boa to work on the Internet Computer (IC): https://smartcontracts.org/docs/introduction/welcome.html

The IC uses wasmtime, and whenever I try to deploy a local Wasm module to my local IC environment I get errors similar to the following:

Module imports function '__wbindgen_describe' from '__wbindgen_placeholder__' that is not exported by the runtime.

AFAIK, I cannot control the wasmtime host environment on the IC, as that would require larger changes to the IC itself. Is there some way to turn off the need for wasm-bindgen, or somehow get boa to work well in non-browser environments? It seems boa is assuming the end Wasm module will be running in a JavaScript environment, whereas in my case (and possibly others' in the future) we don't necessarily want to run our Rust code in the browser, even if the Rust code is compiled to Wasm.

Metadata

Metadata

Assignees

No one assigned

    Labels

    R-DiscussionIssues needing more discussion

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions