From 22a17a3fc562b4366ae3005797802daa635c3126 Mon Sep 17 00:00:00 2001 From: Jef Roosens Date: Wed, 24 Nov 2021 20:59:03 +0100 Subject: [PATCH] Added aggressive release optimisations --- Cargo.toml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index 87eafef..93ca6bb 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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 +