Skip to content

enable --enable-bulk-memory in wasm-opt by default #4186

@jkelleyrtp

Description

@jkelleyrtp

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingwebrelating to the web renderer for dioxus

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions