Skip to content

Commit

Permalink
Reduce the weight of the produced binary
Browse files Browse the repository at this point in the history
Optimise for weight at the expense of compile time, speed and we strip debuging elements

Signed-off-by: Soapydev <[email protected]>
  • Loading branch information
SoapyDev committed Aug 19, 2024
1 parent 7f15324 commit 8e8f31e
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,14 @@ tempdir = "0.3.7"
[[bin]]
name = "linutil"
path = "src/main.rs"



[profile.release]
opt-level = "z"
debug = false
lto = true
codegen-units = 1
panic = "abort"
strip = true
incremental = false

0 comments on commit 8e8f31e

Please sign in to comment.