From e65324fa820d1d71cf618de87afd3366e9eee835 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9o=20Gaillard?= Date: Thu, 3 Nov 2022 02:58:50 +0100 Subject: [PATCH] build: enable LTO, set codegen-unit to 1 and strip the binary --- Cargo.toml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index adf135a..909af50 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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