Skip to content

Commit

Permalink
Switch to panic='abort' for safety across FFI boundaries (#340)
Browse files Browse the repository at this point in the history
  • Loading branch information
lweta committed Jan 21, 2021
1 parent f487e8c commit d5fd272
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
- #325 Reduce memory consumption during inlining

### Bug fixes
- #340 Compile with `panic='abort'` in release mode, for safety of the library across FFI boundaries.

## v0.1.0

Expand Down
2 changes: 2 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ members = [
opt-level = 3
lto = "thin"
incremental = true
panic = 'abort'

[profile.bench]
opt-level = 3
Expand All @@ -20,6 +21,7 @@ debug-assertions = false

[profile.dev]
opt-level = 0
panic = 'abort'

[profile.test]
opt-level = 3
Expand Down

0 comments on commit d5fd272

Please sign in to comment.