How to build with wasm-pack for wasm64 target?

835 Views Asked by At

I've tried so far to

[build]
target = "wasm64-unknown-unknown"

In .cargo/config.toml,

and #![cfg(target_arch = "wasm64")]

in my lib.ts

Still, the target directory that I have as a result of wasm-pack build -t web is wasm32-unknown-unknown.

Is there any way to build wasm64-unknown-unknown with wasm-pack?

It works for cargo build, but as I understand only wasm-pack would generate appropriate bindings for JS.

0

There are 0 best solutions below