Skip to content

Commit

Permalink
build: shrink size of Rust artifacts
Browse files Browse the repository at this point in the history
This does not do panic=abort because to be effective, you also need
to rebuild std, and _that_ means rebuilding images and also installing
from rustup (because the packages we are using do not include std
sources).

But this will still shrink the size a fair bit.
  • Loading branch information
morrisonlevi committed Jun 7, 2024
1 parent a105849 commit b578570
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,10 @@ license = "Apache-2.0"
debug = 2 # full debug info

[profile.release]
debug = 1
lto = "thin"
codegen-units = 1
debug = "line-tables-only"
incremental = false
lto = "fat"

[profile.tracer-release]
debug = 1 # line tables only
Expand Down

0 comments on commit b578570

Please sign in to comment.