From e616de544e7091e4b3ed4360809d5c7e18534e51 Mon Sep 17 00:00:00 2001 From: Mahmoud Al-Qudsi Date: Mon, 20 Feb 2023 13:11:29 -0600 Subject: [PATCH] Enable rust overflow checks in release mode, at least for now We want to try and catch as much unexpected/non-deterministic behavior as we can. We could run the CI explicitly in debug mode, but I think it makes sense to always have overflow checks on in both debug/release modes everywhere, at least for the duration of the codebase transition. --- fish-rust/Cargo.toml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/fish-rust/Cargo.toml b/fish-rust/Cargo.toml index 900f33610..9e7574355 100644 --- a/fish-rust/Cargo.toml +++ b/fish-rust/Cargo.toml @@ -53,3 +53,6 @@ cc = { git = "https://github.com/mqudsi/cc-rs", branch = "fish" } #autocxx = { path = "../../autocxx" } #autocxx-build = { path = "../../autocxx/gen/build" } #autocxx-bindgen = { path = "../../autocxx-bindgen" } + +[profile.release] +overflow-checks = true