From 00981732a670dd2eee83a58afc4c32cc66aa8db8 Mon Sep 17 00:00:00 2001 From: konsti Date: Sat, 3 Aug 2024 13:11:02 +0200 Subject: [PATCH] Always strip in release mode (#5745) Decreases linux release wheel size by 2MB. See https://github.com/rust-lang/cargo/issues/14346 Fixes #5683 --- Cargo.toml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index 04f713fe21dd..318d55c9eb7d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -203,8 +203,12 @@ rc_buffer = "warn" rc_mutex = "warn" rest_pat_in_fully_bound_structs = "warn" +[profile.release] +strip = true + [profile.profiling] inherits = "release" +strip = false debug = true [profile.fast-build]