Explorar el Código

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

cavemanloverboy hace 3 años
padre
commit
f0c09f2f3e
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  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}"
 "#,