From 741124e47e8deefb84d240b4f6620662cd5e3302 Mon Sep 17 00:00:00 2001 From: Adrien Date: Fri, 12 Apr 2024 14:42:41 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9A=A1=EF=B8=8F=20Configure=20cargo=20to=20O?= =?UTF-8?q?ptimize=20the=20size=20of=20the=20generated=20wasm=20bundle?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .cargo/config.toml | 8 ++++++++ Cargo.toml | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 .cargo/config.toml diff --git a/.cargo/config.toml b/.cargo/config.toml new file mode 100644 index 0000000..fa72f7f --- /dev/null +++ b/.cargo/config.toml @@ -0,0 +1,8 @@ +[profile.release] +opt-level = "z" +debug = false +lto = true +codegen-units = 1 +panic = "abort" +strip = true +incremental = false diff --git a/Cargo.toml b/Cargo.toml index 67593f8..1b77f9f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -37,7 +37,7 @@ tracing-web = "0.1.3" tracing-subscriber = "0.3.18" [target.'cfg(target_family = "wasm")'.dependencies] -web-sys = { version = "0.3.69" } +web-sys = "0.3.69" [build-dependencies] regex = "1.10.3"