Added aggressive release optimisations
parent
9a058110a7
commit
22a17a3fc5
16
Cargo.toml
16
Cargo.toml
|
@ -40,3 +40,19 @@ chrono = { version = "*", features = [ "serde" ] }
|
||||||
base64 = "0.13.0"
|
base64 = "0.13.0"
|
||||||
# Reading in configuration files
|
# Reading in configuration files
|
||||||
figment = { version = "*", features = [ "yaml" ] }
|
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
|
||||||
|
|
||||||
|
|
Reference in New Issue