diff --git a/Cargo.toml b/Cargo.toml index fc1517744..0b6e5bca0 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -62,3 +62,9 @@ panic = "abort" [profile.release-with-debug] inherits = "release" debug = "line-tables-only" + +[profile.checked-release] +# Close to a release build, but with all checks enabled. +inherits = "dev" +opt-level = 2 +codegen-units = 16