build: enable LTO, set codegen-unit to 1 and strip the binary

This commit is contained in:
Théo Gaillard 2022-11-03 02:58:50 +01:00
parent 8435b8eab9
commit e65324fa82
No known key found for this signature in database
GPG Key ID: 9C6AAAF893B070FC
1 changed files with 5 additions and 0 deletions

View File

@ -25,3 +25,8 @@ tokio = { version = "1.21.2", features = ["full"] }
time = "0.3.16"
url = "2.3.1"
rust-embed = { version = "6.4.2", features = ["include-exclude"] }
[profile.release]
codegen-units = 1
lto = true
strip = true