diff --git a/Cargo.toml b/Cargo.toml index 8a61c064e5d..2de83648326 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -152,6 +152,12 @@ debug-assertions = true [profile.production] inherits = "release" debug-assertions = false +lto = "thin" +codegen-units = 1 + +[profile.production-stripped] +inherits = "production" +strip = true [patch.crates-io] # If you need to temporarily test Servo with a local fork of some upstream