From 0ce4538e6767a0931b3080b697b84b82c81ae119 Mon Sep 17 00:00:00 2001 From: Dmitry Ivanov Date: Fri, 8 Jul 2022 02:08:53 +0300 Subject: [PATCH] Rework build profiles in root Cargo.toml --- Cargo.toml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index f0934853f0..9849a7027d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -11,10 +11,17 @@ members = [ ] [profile.release] -# This is useful for profiling and, to some extent, debug. -# Besides, debug info should not affect the performance. +strip = "debuginfo" + +[profile.perf] +inherits = "release" debug = true +[profile.release-coverage] +inherits = "release" +overflow-checks = true +debug-assertions = true + # This is only needed for proxy's tests. # TODO: we should probably fork `tokio-postgres-rustls` instead. [patch.crates-io]