Skip to content
This repository has been archived by the owner on Sep 12, 2023. It is now read-only.

Commit

Permalink
required wasm-bindgen version && cargo build for --all-targets
Browse files Browse the repository at this point in the history
  • Loading branch information
wangshishuo committed Aug 10, 2020
1 parent 1cfeedd commit 691b11c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/build/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ pub fn cargo_build_wasm(
PBAR.info(&msg);

let mut cmd = Command::new("cargo");
cmd.current_dir(path).arg("build").arg("--lib").arg("--bins");
cmd.current_dir(path).arg("build").arg("--all-targets");

if PBAR.quiet() {
cmd.arg("--quiet");
Expand Down
4 changes: 2 additions & 2 deletions src/lockfile.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ impl Lockfile {
format_err!(
"Ensure that you have \"{}\" as a dependency in your Cargo.toml file:\n\
[dependencies]\n\
wasm-bindgen = \"0.2\"",
style("wasm-bindgen").bold().dim(),
wasm-bindgen = \"=0.2.61\"",
style("wasm-bindgen 0.2.61").bold().dim(),
)
})
}
Expand Down

0 comments on commit 691b11c

Please sign in to comment.