Skip to content

Commit d2a51e7

Browse files
committed
Fix a small regression in resolving cargo build's output WASM.
closes #15
1 parent 1c8e363 commit d2a51e7

File tree

4 files changed

+7
-3
lines changed

4 files changed

+7
-3
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ changelog
33

44
## Unreleased
55

6+
## 0.3.1
7+
### fixed
8+
- Fixed a regression in resolving `cargo build`'s output WASM.
9+
610
## 0.3.0
711
### added
812
- Handle multi-project & workspace contexts. Thank you @oli-obk for developing [cargo_metadata](https://github.com/oli-obk/cargo_metadata).

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "trunk"
3-
version = "0.3.0"
3+
version = "0.3.1"
44
edition = "2018"
55
description = "Build, bundle & ship your Rust WASM application to the web."
66
license = "MIT/Apache-2.0"

src/build.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ impl BuildSystem {
5959
let app_target_wasm = manifest.metadata.target_directory
6060
.join("wasm32-unknown-unknown")
6161
.join(mode_segment)
62-
.join(format!("{}.wasm", &manifest.package.name));
62+
.join(format!("{}.wasm", &manifest.name));
6363
let bindgen_out = manifest.metadata.target_directory
6464
.join("wasm-bindgen")
6565
.join(mode_segment);

0 commit comments

Comments
 (0)