Skip to content

Commit

Permalink
Document opt-level flag for release profile
Browse files Browse the repository at this point in the history
Signed-off-by: Sam Batschelet <sam.batschelet@avalabs.org>
  • Loading branch information
hexfusion committed Oct 6, 2023
1 parent 7fdaff5 commit 8eb9122
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ members = [
resolver = "2"

[profile.release]
# https://rustwasm.github.io/docs/book/reference/code-size.html#tell-llvm-to-optimize-for-size-instead-of-speed
opt-level = "s"
lto = true
codegen-units = 1
Expand Down

0 comments on commit 8eb9122

Please sign in to comment.