Display wasm size and enable LTO for release build

This commit is contained in:
Cecile Tonglet 2020-09-26 05:31:21 +02:00
parent f5bc807ec2
commit 974d2d5f63
2 changed files with 5 additions and 0 deletions

View file

@ -9,6 +9,9 @@ edition = "2018"
[lib] [lib]
crate-type = ["cdylib"] crate-type = ["cdylib"]
[profile.release]
lto = true
[badges] [badges]
travis-ci = { repository = "cecton/yewprint", branch = "main" } travis-ci = { repository = "cecton/yewprint", branch = "main" }
is-it-maintained-issue-resolution = { repository = "cecton/yewprint" } is-it-maintained-issue-resolution = { repository = "cecton/yewprint" }

View file

@ -29,4 +29,6 @@ rc=$?
rm -fR public/{.gitignore,package.json,README.md} rm -fR public/{.gitignore,package.json,README.md}
echo Wasm size: $(cat public/*.wasm | wc -c)
exit $rc exit $rc