I’m writing an app that is comprised of two crates: the first crate is a standard binary which uses webview to load a yew project which is compiled as asm.js. The first binary crate uses an
index.hml file and the compiled asm.js file.
How can I create a single workspace project and specify that the first crate should be compiled with
cargo build and the second with
cargo web build --target asmjs-unknown-emscripten? Currently, cargo builds both crates in the same way, causing the build of the second crate to fail.