Update Cargo.toml to optimise binaries for size

Strip binaries, change optimisation level to heavily optimise for size, change codegen units to 1, which slows compile times but adds maximum size optimisations.
This commit is contained in:
zen1tho 2023-02-16 23:56:27 +00:00 committed by GitHub
parent e385cd58da
commit def77cc14e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -61,6 +61,9 @@ debug = false
# use LTO for smaller binaries (that take longer to build)
[profile.release]
lto = true
strip = true
opt-level = "z"
codegen-units = 1
[package.metadata.deb]