diff --git a/Cargo.toml b/Cargo.toml index c1d6093080..05ac3b85ba 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -114,10 +114,13 @@ incremental = false lto = "fat" # Makes sure that all code is compiled together, for LTO codegen-units = 1 +# Strips debug information and symbols from the binary, reducing its size +strip = "symbols" [profile.release-dbg] inherits = "release" debug = true +strip = "none" # The test profile, used for `cargo test`. [profile.test]