From 2da0448b6fe03e0479f3dbce88cfd80871b74242 Mon Sep 17 00:00:00 2001 From: Denys Zadorozhnyi Date: Tue, 17 Sep 2024 11:47:25 +0300 Subject: [PATCH] add `dev` profile --- account/template/Cargo.toml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/account/template/Cargo.toml b/account/template/Cargo.toml index 4b38114..d02cc41 100644 --- a/account/template/Cargo.toml +++ b/account/template/Cargo.toml @@ -29,3 +29,14 @@ opt-level = "z" # ensures that panics do not pull in a bunch of standard # library code unintentionally panic = "abort" + +[profile.dev] +# Explicitly disable panic infrastructure on Wasm, as +# there is no proper support for them anyway, and it +# ensures that panics do not pull in a bunch of standard +# library code unintentionally +panic = "abort" +opt-level = 1 +debug-assertions = false +overflow-checks = false +debug = true \ No newline at end of file