Skip to content
This repository has been archived by the owner on Nov 7, 2024. It is now read-only.

Commit

Permalink
Cargo.toml: Update release profile, add releaselto
Browse files Browse the repository at this point in the history
- `release` should use `panic=abort` by default because we make
  heavy use of FFI and this is safest, and I don't think we need
  unwinding anyways
- The `releaselto` produces smallest binaries
  • Loading branch information
cgwalters committed Aug 22, 2023
1 parent 8502306 commit 6792973
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 @@ -7,3 +7,12 @@ opt-level = 1 # No optimizations are too slow for us.

[profile.release]
lto = "thin"
# We use FFI so this is safest
panic = "abort"
# We assume we're being delivered via e.g. RPM which supports split debuginfo
debug = true

[profile.releaselto]
codegen-units = 1
inherits = "release"
lto = "yes"

0 comments on commit 6792973

Please sign in to comment.