Skip to content

Commit

Permalink
Merge pull request #42 from CosmWasm/optimize-release-builds
Browse files Browse the repository at this point in the history
Add optimization config to all contracts in Cargo.toml
  • Loading branch information
ethanfrey authored Aug 13, 2020
2 parents 678a796 + 41a422d commit 2316215
Showing 1 changed file with 22 additions and 1 deletion.
23 changes: 22 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,14 +1,35 @@
[workspace]
members = ["packages/*", "contracts/*"]

[profile.release.package.cw1-subkeys]
opt-level = 3
debug = false
debug-assertions = false
codegen-units = 1
incremental = false

[profile.release.package.cw1-whitelist]
opt-level = 3
debug = false
debug-assertions = false
codegen-units = 1
incremental = false

[profile.release.package.cw20-base]
opt-level = 3
debug = false
debug-assertions = false
codegen-units = 1
incremental = false
overflow-checks = true

[profile.release.package.cw20-escrow]
opt-level = 3
debug = false
debug-assertions = false
codegen-units = 1
incremental = false

[profile.release]
rpath = false
lto = true
overflow-checks = true

0 comments on commit 2316215

Please sign in to comment.