Skip to content

Commit

Permalink
Reduce release binary size
Browse files Browse the repository at this point in the history
  • Loading branch information
sbernauer committed Aug 18, 2023
1 parent 8fc8786 commit 1a93511
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,12 @@ xdg = "2.4"
# TODO: Switch to released version
# We did not want to draw a release of operator-rs just for https://github.com/stackabletech/operator-rs/pull/634
# stackable-operator = { git = "https://github.com/stackabletech//operator-rs.git", branch = "main" }

[profile.release.package.stackablectl]
# opt-level = "z" # We don't use that as the binary saving is not *that* big (think of 1MB) and it's not worth it risiking performance for this
strip = true
# Can not using because of https://github.com/rust-lang/cargo/issues/8264#issuecomment-751931213
# lto = true
codegen-units = 1
# Can not using because of https://github.com/rust-lang/cargo/issues/8264#issuecomment-751931213
# panic = "abort"

0 comments on commit 1a93511

Please sign in to comment.