diff --git a/polkadot/Cargo.toml b/polkadot/Cargo.toml index 3f8a98f6d5..5648a82a63 100644 --- a/polkadot/Cargo.toml +++ b/polkadot/Cargo.toml @@ -117,18 +117,20 @@ exclude = ["bridges/relays/bin-substrate", "bridges/bin/rialto/runtime", "bridge [badges] maintenance = { status = "actively-developed" } -# make sure dev builds with backtrace do -# not slow us down -[profile.dev.package.backtrace] -opt-level = 3 - [profile.release] # Polkadot runtime requires unwinding. panic = "unwind" +opt-level = 3 + +# make sure dev builds with backtrace do +# not slow us down +[profile.dev.package.backtrace] +inherits = "release" [profile.production] inherits = "release" lto = true +codegen-units = 1 [profile.testnet] inherits = "release"