From a01c2345da1d0e917577f45c07ab95b2aea9363b Mon Sep 17 00:00:00 2001 From: Alex Koshelev Date: Fri, 13 Dec 2024 09:30:10 -0800 Subject: [PATCH] Fix Cargo.toml for panic=abort This must be specified in workplace Cargo as it was pointed in the warning --- Cargo.toml | 5 +++++ ipa-core/Cargo.toml | 6 ------ 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index deb437919..15abda50c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -5,6 +5,11 @@ members = ["ipa-core", "ipa-step", "ipa-step-derive", "ipa-step-test", "ipa-metr [profile.release] incremental = true lto = "thin" +# The reason for this is that we are moving towards the direction when helper processes are created per query +# in this case there is no reason to try and preserve the helper instance to serve other queries. Aborting +# makes dealing with the corrupted state easier +panic = 'abort' + [profile.release-max] inherits = "release" diff --git a/ipa-core/Cargo.toml b/ipa-core/Cargo.toml index b91e7efa8..8bb49f189 100644 --- a/ipa-core/Cargo.toml +++ b/ipa-core/Cargo.toml @@ -177,12 +177,6 @@ tempfile = "3" ipa-metrics-tracing = { path = "../ipa-metrics-tracing" } ipa-metrics = { path = "../ipa-metrics", features = ["partitions"] } -[profile.release] -# The reason for this is that we are moving towards the direction when helper processes are created per query -# in this case there is no reason to try and preserve the helper instance to serve other queries. Aborting -# makes dealing with the corrupted state easier -panic = 'abort' - [lib] path = "src/lib.rs" bench = false