-
Notifications
You must be signed in to change notification settings - Fork 312
Open
Description
Hi,
I’ve been learning from scratch using the website tutorials, and I managed to set up the web window init example via Vue, though it wasn’t easy. You can find the example code here: GitHub Link
Everything works, but I had to add the following flag to Cargo.toml to make it work:
[package.metadata.wasm-pack.profile.release]
wasm-opt = false
I’m wondering why this error happens and what exactly the bulk memory operation means. Could someone provide some insights?
Otherwise I get this error:
...
[wasm-validator error in function 800] unexpected false: Bulk memory operations require bulk memory [--enable-bulk-memory], on
(memory.copy
(local.get $0)
(local.get $1)
(i32.const 176)
)
[wasm-validator error in function 1075] unexpected false: all used features should be allowed, on
(i32.trunc_sat_f64_u
(call $537
(local.get $0)
)
)
[wasm-validator error in function 1076] unexpected false: all used features should be allowed, on
(i32.trunc_sat_f64_s
(call $537
(local.get $0)
)
)
Fatal: error validating input
Error: failed to execute `wasm-opt`: exited with exit status: 1
full command: "/Users/petras/Library/Caches/.wasm-pack/wasm-opt-50385c9e73ccee70/bin/wasm-opt" "/Users/petras/rust/wink/pkg/wink_bg.wasm" "-o" "/Users/petras/rust/wink/pkg/wink_bg.wasm-opt.wasm" "-O"
To disable `wasm-opt`, add `wasm-opt = false` to your package metadata in your `Cargo.toml`.
Caused by: failed to execute `wasm-opt`: exited with exit status: 1
full command: "/Users/petras/Library/Caches/.wasm-pack/wasm-opt-50385c9e73ccee70/bin/wasm-opt" "/Users/petras/rust/wink/pkg/wink_bg.wasm" "-o" "/Users/petras/rust/wink/pkg/wink_bg.wasm-opt.wasm" "-O"
Metadata
Metadata
Assignees
Labels
No labels