Hello,
I am trying to build a package halo2_backend I am working on and import it into javascript.
I can build the package with cargo build --lib --release --package noir_halo2_backend_pse --target wasm32-wasi. However, when I try to initialize using wasmer-js or wasi-js, or if I try to use wasmtime by the cli, it always produces the same error:
> wasmtime target/wasm32-wasi/release/noir_halo2_backend_pse.wasm
Error: failed to run main module `target/wasm32-wasi/release/noir_halo2_backend_pse.wasm`
Caused by:
0: failed to instantiate "target/wasm32-wasi/release/noir_halo2_backend_pse.wasm"
1: unknown import: `__wbindgen_placeholder__::__wbindgen_cb_drop` has not been defined
I've tried removing as many references to wasm-bindgen in a separate branch, including sub-dependencies, but have not progressed. Any suggestions on how I debug this issue would be greatly appreciated!