Skip to content

Commit

Permalink
Link with LTO and optimize for code size!
Browse files Browse the repository at this point in the history
We do nothing special on our end, on Windows, this reduces the
executable size from ~1.4M to ~0.4M. This should run faster.
  • Loading branch information
TheGoddessInari committed Sep 3, 2019
1 parent 03292a3 commit d2da0e5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,8 @@ features = ["max_level_debug", "release_max_level_warn"]
version = "1.3.0"
default-features = false
features = ["std"]

[profile.release]
lto = true
codegen-units = 1
opt-level = "z"

0 comments on commit d2da0e5

Please sign in to comment.