From 509ef94f795e469a562c2dd9796694fc8f6a2c16 Mon Sep 17 00:00:00 2001 From: Paul Date: Wed, 20 Apr 2022 16:36:10 -0400 Subject: [PATCH] cli: move overflow-checks into workspace Cargo.toml so that it will not be ignored by compiler (#1806) --- CHANGELOG.md | 4 ++++ cli/src/template.rs | 6 +++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index daea9104e0..0a1d4f6913 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,10 @@ The minor version will be incremented upon a breaking change and the patch versi ## [Unreleased] +### Fixes + +* cli: Move `overflow-checks` into workspace `Cargo.toml` so that it will not be ignored by compiler ([#1806](https://github.com/project-serum/anchor/pull/1806)). + ## [0.24.2] - 2022-04-13 ### Fixes diff --git a/cli/src/template.rs b/cli/src/template.rs index 07aa99afb8..fcf1aa8236 100644 --- a/cli/src/template.rs +++ b/cli/src/template.rs @@ -16,6 +16,9 @@ pub fn virtual_manifest() -> &'static str { members = [ "programs/*" ] + +[profile.release] +overflow-checks = true "# } @@ -65,9 +68,6 @@ no-log-ix-name = [] cpi = ["no-entrypoint"] default = [] -[profile.release] -overflow-checks = true - [dependencies] anchor-lang = "{2}" "#,