compiler-artifact
message doesn't include WASM files for --example ...
builds
#6810
Labels
C-bug
Category: bug
Problem
Hi all, when I build a binary with
--target wasm32-unknown-emscripten
, thecompiler-artifact
message includes the.js
and.wasm
files under thefilenames
property. However, when I build an example with--example ...
, only the.js
file appears in thecompiler-artifact
message.cargo-web
depends on thecompiler-artifacts
message to determine which files to serve for itscargo web start
command, but it seems no message fromcargo
provides references to the generated.wasm
files for example builds.Thanks for your time!
Steps
I'm currently experiencing this with the
cube
example ingfx
.Example output of building
cargo build --message-format json --target wasm32-unknown-emscripten --example cube
(this output is missing the.wasm
file):For comparison, I have copied it to the
src
directory ascube_example_as_bin
and added an entry to theCargo.toml
file:Example output of building
cargo build --message-format json --target wasm32-unknown-emscripten
(this output includes the.wasm
file):Possible Solution(s)
Notes
Output of
cargo version
:cargo 1.33.0 (f099fe94b 2019-02-12)
The text was updated successfully, but these errors were encountered: