Jelajahi Sumber

cli: move overflow-checks into workspace Cargo.toml so that it will not be ignored by compiler (#1806)

Paul 3 tahun lalu
induk
melakukan
509ef94f79
2 mengubah file dengan 7 tambahan dan 3 penghapusan
  1. 4 0
      CHANGELOG.md
  2. 3 3
      cli/src/template.rs

+ 4 - 0
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

+ 3 - 3
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}"
 "#,