diff --git a/Cargo.toml b/Cargo.toml index 5ea739b8f5..0c8f9a752d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -477,9 +477,10 @@ zeroize = { opt-level = 3 } inherits = "release" [profile.production] +inherits = "release" +debug-assertions = false # Disable debug-assert! for production builds codegen-units = 1 incremental = false -inherits = "release" lto = true [profile.release]