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]