From c6d3f61a42e350b81717cc38d170b7ae30bf6fb4 Mon Sep 17 00:00:00 2001 From: Rob Bradford Date: Tue, 17 Jan 2023 12:52:20 +0000 Subject: [PATCH] build: Add new profiling target This makes it much more convenient to build binaries for profiling without having to modify the Cargo.toml file. Signed-off-by: Rob Bradford --- Cargo.toml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index 8d7d4d98c..1534cc157 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -23,6 +23,11 @@ codegen-units = 1 opt-level = "s" strip = true +[profile.profiling] +inherits = "release" +strip = false +debug = true + [dependencies] anyhow = "1.0.68" api_client = { path = "api_client" }