️ Configure cargo to Optimize the size of the generated wasm bundle

This commit is contained in:
2024-04-12 14:42:41 +02:00
parent 9951c2fea6
commit 741124e47e
2 changed files with 9 additions and 1 deletions

8
.cargo/config.toml Normal file
View File

@@ -0,0 +1,8 @@
[profile.release]
opt-level = "z"
debug = false
lto = true
codegen-units = 1
panic = "abort"
strip = true
incremental = false