Rework build profiles in root Cargo.toml

This commit is contained in:
Dmitry Ivanov
2022-07-08 02:08:53 +03:00
parent 7042f9d12d
commit 0ce4538e67

View File

@@ -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]