This repository has been archived by the owner on Nov 8, 2021. It is now read-only.
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.
Merge pull request rustwasm#440 from fitzgen/build-profiles-toml-config
Add three build profiles and infrastructure for their toml config
- Loading branch information
Showing
11 changed files
with
464 additions
and
65 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# `Cargo.toml` Configuration | ||
|
||
`wasm-pack` can be configured via the `package.metadata.wasm-pack` key in | ||
`Cargo.toml`. Every option has a default, and is not required. | ||
|
||
There are three profiles: `dev`, `profiling`, and `release`. These correspond to | ||
the `--dev`, `--profiling`, and `--release` flags passed to `wasm-pack build`. | ||
|
||
The available configuration options and their default values are shown below: | ||
|
||
```toml | ||
[package.metadata.wasm-pack.profile.dev.wasm-bindgen] | ||
# Should we enable wasm-bindgen's debug assertions in its generated JS glue? | ||
debug-js-glue = true | ||
# Should wasm-bindgen demangle the symbols in the "name" custom section? | ||
demangle-name-section = true | ||
# Should we emit the DWARF debug info custom sections? | ||
dwarf-debug-info = false | ||
|
||
[package.metadata.wasm-pack.profile.profiling.wasm-bindgen] | ||
debug-js-glue = false | ||
demangle-name-section = true | ||
dwarf-debug-info = false | ||
|
||
[package.metadata.wasm-pack.profile.release.wasm-bindgen] | ||
debug-js-glue = false | ||
demangle-name-section = true | ||
dwarf-debug-info = false | ||
``` |
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
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.