Skip to content

Commit

Permalink
Fix Cargo.toml for panic=abort
Browse files Browse the repository at this point in the history
This must be specified in workplace Cargo as it was pointed in the warning
  • Loading branch information
akoshelev committed Dec 13, 2024
1 parent fa74e23 commit a01c234
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
5 changes: 5 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
6 changes: 0 additions & 6 deletions ipa-core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a01c234

Please sign in to comment.