-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
enable --enable-bulk-memory in wasm-opt by default #4186
Copy link
Copy link
Closed
Labels
bugSomething isn't workingSomething isn't workingwebrelating to the web renderer for dioxusrelating to the web renderer for dioxus
Description
in Rust 1.87, target-feature=bulk-memory became enabled by default, but our wasm-opt pipeline does not enable it. We need to update our default config to pass it through.
This is a bit strange to me though, since we always pass target-features through.
Discussed in #4183
Originally posted by brianmay May 24, 2025
Somehow in the latest nixos 24.11 and 25.05 something changed, and now I am getting this error:
48.170s INFO Bundling app...
48.170s INFO Running wasm-bindgen...
48.371s INFO Running optimization with wasm-opt...
48.451s ERROR err=Other(Failed to write main executable
Caused by:
0: Failed to read module
1: [parse exception: invalid code after misc prefix: 17 (at 0:3354470)])
48.452s ERROR err=Other(Failed to write main executable
Caused by:
0: Failed to read module
1: [parse exception: invalid code after misc prefix: 17 (at 0:3354470)])
Any ideas?
Am using 0.2.100 of wasm-bindgen-cli, that hasn't changed. Assuming dx is correctly using the installed version still.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingwebrelating to the web renderer for dioxusrelating to the web renderer for dioxus