diff --git a/Cargo.toml b/Cargo.toml index 51400e3a0d30..be793460fd2e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -211,9 +211,13 @@ lto = "fat" [profile.release-debug] debug = 'line-tables-only' inherits = "release" -lto = false strip = false +[profile.release-debug.package.'*'] +debug = false +strip = true + + # the following lints rules are from https://github.com/biomejs/biome/blob/4bd3d6f09642952ee14445ed56af81a73796cea1/Cargo.toml#L7C1-L75C1 [workspace.lints.rust] absolute_paths_not_starting_with_crate = "warn"