Browse Source

cli: integer arithmetic safe by default w/o checked (#1758)

cavemanloverboy 3 years ago
parent
commit
f0c09f2f3e
1 changed files with 3 additions and 0 deletions
  1. 3 0
      cli/src/template.rs

+ 3 - 0
cli/src/template.rs

@@ -65,6 +65,9 @@ no-log-ix-name = []
 cpi = ["no-entrypoint"]
 default = []
 
+[profile.release]
+overflow-checks = true
+
 [dependencies]
 anchor-lang = "{2}"
 "#,