Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion crates/cli/src/tasks/rust.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,12 @@ fn cargo_cmd(subcommand: &str, build_debug: bool, args: &[&str]) -> duct::Expres

pub(crate) fn build_rust(project_path: &Path, skip_clippy: bool, build_debug: bool) -> anyhow::Result<PathBuf> {
// Make sure that we have the wasm target installed (ok to run if its already installed)
cmd!("rustup", "target", "add", "wasm32-unknown-unknown").run()?;
if let Err(err) = cmd!("rustup", "target", "add", "wasm32-unknown-unknown").run() {
println!(
"Warning: Failed to install wasm32-unknown-unknown target: {}. Is `rustup` installed?",
err
);
}

// Note: Clippy has to run first so that it can build & cache deps for actual build while checking in parallel.
if !skip_clippy {
Expand Down