Skip to content

Commit

Permalink
fix: run overflow checks in release mode (#324)
Browse files Browse the repository at this point in the history
stringhandler authored Jan 31, 2023

Verified

This commit was signed with the committer’s verified signature.
hansieodendaal Hansie Odendaal
1 parent b583d43 commit 3bac6a1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -23,6 +23,9 @@ resolver = "2"
# Shutdown when panicking so we can see the error, specifically for the wallet
[profile.release]
panic = 'abort'
# By default, Rust will wrap an integer in release mode instead of throwing the overflow error
# seen in debug mode. Panicking at this time is better than silently using the wrong value.
overflow-checks = true

[patch.crates-io]
# Temporarily lock pgp to commit (master branch at time of writing) because the currently release crate locks zeroize to =1.3

0 comments on commit 3bac6a1

Please sign in to comment.