Added aggressive release optimisations

pull/3/head
Jef Roosens 2021-11-24 20:59:03 +01:00
parent 9a058110a7
commit 22a17a3fc5
Signed by: Jef Roosens
GPG Key ID: B580B976584B5F30
1 changed files with 16 additions and 0 deletions

View File

@ -40,3 +40,19 @@ chrono = { version = "*", features = [ "serde" ] }
base64 = "0.13.0"
# Reading in configuration files
figment = { version = "*", features = [ "yaml" ] }
[profile.dev]
lto = "off"
incremental = true
[profile.release]
lto = "fat"
incremental = true
codegen-units = 1
# For releases also try to max optimizations for dependencies:
[profile.release.build-override]
opt-level = 3
[profile.release.package."*"]
opt-level = 3