From 1af6f685d175e84689b66444a3a51f11a11c861c Mon Sep 17 00:00:00 2001 From: Joshua Barretto Date: Thu, 17 Jun 2021 15:19:25 +0100 Subject: [PATCH] Enabled debug lines for Veloren crates only to significantly reduce binary size --- Cargo.toml | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 0342211826..23e860d861 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -86,8 +86,27 @@ opt-level = 3 overflow-checks = false debug-assertions = false lto = true -debug = 1 # line tables so we can have useful backtraces +debug = false panic = "abort" # don't need unwinding so we can skip including the landing pads for that +# line tables so we can have useful backtraces for in-house crates +[profile.release.package."veloren-network"] +debug = 1 +[profile.release.package."veloren-network-protocol"] +debug = 1 +[profile.release.package."veloren-common"] +debug = 1 +[profile.release.package."veloren-common-systems"] +debug = 1 +[profile.release.package."veloren-client"] +debug = 1 +[profile.release.package."veloren-server"] +debug = 1 +[profile.release.package."veloren-server-cli"] +debug = 1 +[profile.release.package."veloren-voxygen"] +debug = 1 +[profile.release.package."veloren-world"] +debug = 1 # used for cargo bench [profile.bench]