From 5c9614f6b22fd58f849785eff412c0ac30bb0676 Mon Sep 17 00:00:00 2001 From: Simon Gardling Date: Tue, 26 Apr 2022 19:39:17 -0400 Subject: [PATCH] size improvements --- .cargo/config.toml | 1 + Cargo.toml | 3 +++ 2 files changed, 4 insertions(+) diff --git a/.cargo/config.toml b/.cargo/config.toml index 865dedb..06d0366 100644 --- a/.cargo/config.toml +++ b/.cargo/config.toml @@ -1,2 +1,3 @@ [target.wasm32-unknown-unknown] rustflags = ["-C", "linker-plugin-lto=yes", "-C", "inline-threshold=275"] + diff --git a/Cargo.toml b/Cargo.toml index aa7a965..a3c4938 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -18,6 +18,9 @@ codegen-units = 1 opt-level = "z" #optimize for size lto = "fat" strip = true +panic = "abort" +overflow-checks = false +debug-assertions = false [profile.dev] debug = true