From 1ebaf957f804399d468cbd312b005e3a162d2122 Mon Sep 17 00:00:00 2001 From: Dev Ojha Date: Thu, 21 Jan 2021 13:34:19 -0600 Subject: [PATCH] Switch to panic='abort' for safety across FFI boundaries (#184) --- CHANGELOG.md | 1 + Cargo.toml | 2 ++ 2 files changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 966853c76..9177ede75 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -86,5 +86,6 @@ The main features of this release are: whose leading coefficients cancel. - #160 (ark-serialize, ark-ff, ark-ec) Support serializing when `MODULUS_BITS + FLAG_BITS` is greater than the multiple of 8 just greater than `MODULUS_BITS`, which is the case for the Pasta curves (fixes #47). - #165 (ark-ff) Enforce in the type system that an extension fields `BaseField` extends from the correct `BasePrimeField`. +- #184 Compile with `panic='abort'` in release mode, for safety of the library across FFI boundaries. ## v0.1.0 (Initial release of arkworks/algebra) diff --git a/Cargo.toml b/Cargo.toml index b2624cbbd..215068eec 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -19,6 +19,7 @@ members = [ opt-level = 3 lto = "thin" incremental = true +panic = 'abort' [profile.bench] opt-level = 3 @@ -30,6 +31,7 @@ debug-assertions = false [profile.dev] opt-level = 0 +panic = 'abort' [profile.test] opt-level = 3