[wasm32-unknown-emscripten] Js and Wasm files have different names. #13355
Open
Description
The Wasm file and the Js file have different names.
I tried this code:
cargo new a-b-c
cargo build
// a-b-c
cargo build --target=wasm32-unknown-emscripten
// a-b-c.js
// a_b_c.wasm
cargo build --target=wasm32-unknown-unknown
// a-b-c.wasm
I expected to see this happen: explanation
Wasm and Js files have the same name.
a-b-c.js
a-b-c.wasm
or
a_b_c.js
a_b_c.wasm
Instead, this happened: explanation
a-b-c.js
a_b_c.wasm
Meta
rustc --version --verbose
:
rustc 1.76.0-nightly (2b603f95a 2023-11-12)
binary: rustc
commit-hash: 2b603f95a48f10f931a61dd208fe3e5ffd64e491
commit-date: 2023-11-12
host: x86_64-unknown-linux-gnu
release: 1.76.0-nightly
LLVM version: 17.0.4```