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.