Skip to content

wasm64-unknown-emscripten target only generate program.js file without .wasm binary #166188

Open

Description

@Wyvern

I tried new added wasm64-unknown-emscripten target

rustc 1.102.0-nightly (65ce8611f 2026-11-18)
build with -Zbuild-std

but the target output only contains <program>.js file without .wasm generated.

wasm32-unknown-emscripten build normally with both .js and .wasm generated.

What am I missing?

Activity

  1. added
    needs-triage
    on Nov 19, 2026
  2. bjorn3 commented on Nov 19, 2026

    @bjorn3
    Member

    Cargo hard codes both the wasm32-unknown-emscripten target and wasm32-* in some places for handling the fact that Emscripten produces both a .js and .wasm file. So this is a Cargo bug, not a rustc bug.

  3. added
    T-cargo
    O-emscripten
    on Nov 19, 2026
  4. Jules-Bertholet commented on Nov 21, 2026

    @Jules-Bertholet
    Contributor

    Seems to have been fixed by rust-lang/cargo#17620

  5. weihanglo commented on Nov 21, 2026

    @weihanglo
    Member

    I'll do a submodule update in 5 minutes and over the weekend it should be on nightly

  6. weihanglo commented on Nov 21, 2026

    @weihanglo
    Member
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    O-emscriptenT-cargoneeds-triage

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions