forked from rustwasm/wasm-pack
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix wasm-bindgen if lib is renamed via
lib.name
This commit fixes an issue where if a library is renamed via the `name` key in the `[lib]` section of the manifest then `wasm-pack` would try to generate bindings for an noexistent wasm-file, generating an error. The fix was to internally use `cargo_metadata` more aggressively and move around where this data is generated. This ended up refactoring a few locations, but this should also bring improved error messages for `cargo metadata` as well as caching the resulting data more aggressively to avoid recalculating it too much. Closes rustwasm#339
- Loading branch information
1 parent
e8b3075
commit 35fe250
Showing
10 changed files
with
381 additions
and
278 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.