build: enable LTO, set codegen-unit to 1 and strip the binary (#467)

Co-authored-by: Spike <19519553+spikecodes@users.noreply.github.com>
This commit is contained in:
tirz 2023-01-01 22:33:31 +01:00 committed by GitHub
parent 9178b50b73
commit 9c938c6210
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -31,3 +31,8 @@ once_cell = "1.16.0"
[dev-dependencies]
lipsum = "0.8.2"
[profile.release]
codegen-units = 1
lto = true
strip = true