Skip to content

Commit

Permalink
Fix a small regression in resolving cargo build's output WASM.
Browse files Browse the repository at this point in the history
closes #15
  • Loading branch information
thedodd committed Aug 30, 2020
1 parent 1c8e363 commit 213090b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ changelog

## Unreleased

## 0.3.1
### fixed
- Fixed a regression in resolving `cargo build`'s output WASM.

## 0.3.0
### added
- Handle multi-project & workspace contexts. Thank you @oli-obk for developing [cargo_metadata](https://github.com/oli-obk/cargo_metadata).
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "trunk"
version = "0.3.0"
version = "0.3.1"
edition = "2018"
description = "Build, bundle & ship your Rust WASM application to the web."
license = "MIT/Apache-2.0"
Expand Down
2 changes: 1 addition & 1 deletion src/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ impl BuildSystem {
let app_target_wasm = manifest.metadata.target_directory
.join("wasm32-unknown-unknown")
.join(mode_segment)
.join(format!("{}.wasm", &manifest.package.name));
.join(format!("{}.wasm", &manifest.name));
let bindgen_out = manifest.metadata.target_directory
.join("wasm-bindgen")
.join(mode_segment);
Expand Down

0 comments on commit 213090b

Please sign in to comment.