From 5facc776b4ea5ffe0c8dd1423834a7baa1cb7b45 Mon Sep 17 00:00:00 2001 From: Kubat <mael.martin31@gmail.com> Date: Thu, 8 Dec 2022 22:29:37 +0100 Subject: [PATCH] RUST: Add the standard size optimisation flags --- src/rust/liblektor-rs/Cargo.toml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/rust/liblektor-rs/Cargo.toml b/src/rust/liblektor-rs/Cargo.toml index 583e4d5f..01f109d3 100644 --- a/src/rust/liblektor-rs/Cargo.toml +++ b/src/rust/liblektor-rs/Cargo.toml @@ -23,3 +23,15 @@ serde = { version = "^1", default-features = false, features = [ "std", "derive", ] } + +[profile.release] +strip = true +debug = false +lto = true +opt-level = "s" +codegen-units = 1 + +[profile.dev] +debug = true +opt-level = "s" + -- GitLab