@[email protected] @noboilerplate All of these options have trade-offs.

opt-level = 'z' is often slower than opt-level = 3.
lto = true and codegen-units = 1 both make compilation slower.
panic = 'abort' makes panics unrecoverable, and does not run destructors after a panic.
strip = true makes the program harder to debug.

@TDplay @edchdx @noboilerplate I get it all, but I really think that `lto = true` and `codegen-units = 1` should be the default for release mode. I added this to my global cargo config:

https://codeberg.org/mo8it/dotfiles/src/branch/main/.cargo/config.toml

dotfiles

dotfiles

Codeberg.org