Skip to content

Commit

Permalink
Update Cargo.toml to optimise binaries for size
Browse files Browse the repository at this point in the history
Strip binaries, change optimisation level to heavily optimise for size, change codegen units to 1, which slows compile times but adds maximum size optimisations.
  • Loading branch information
zen1tho authored and Omnikron13 committed Mar 17, 2024
1 parent 3d28794 commit fa85c87
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@ debug = false
# use LTO for smaller binaries (that take longer to build)
[profile.release]
lto = true
strip = true
opt-level = "z"
codegen-units = 1


[package.metadata.deb]
Expand Down

0 comments on commit fa85c87

Please sign in to comment.