From b9af7feffdb22629423b8f47a27f344712f4a14c Mon Sep 17 00:00:00 2001 From: Zageron Date: Sat, 8 Oct 2022 09:04:25 -0700 Subject: [PATCH] fix(build): move wasm opt-level to root package --- Cargo.toml | 9 +++++++++ crates/rrr_wasm/Cargo.toml | 4 ---- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index e8a0d88..2637ce1 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -30,3 +30,12 @@ clap_complete = "4.0.2" rrr_config = { path = "crates/rrr_config" } rrr_tui = { path = "crates/rrr_tui", optional = true } rrr_window = { path = "crates/rrr_window", optional = true } + +[profile.release] +opt-level = 3 + +[profile.dev.package.rrr_wasm] +opt-level = "s" + +[profile.release.package.rrr_wasm] +opt-level = "s" diff --git a/crates/rrr_wasm/Cargo.toml b/crates/rrr_wasm/Cargo.toml index f8a7788..8ab6bbf 100644 --- a/crates/rrr_wasm/Cargo.toml +++ b/crates/rrr_wasm/Cargo.toml @@ -40,9 +40,5 @@ winit_input_helper = "0.13.0" version = "0.3.60" features = ["HtmlCanvasElement"] - [dev-dependencies] wasm-bindgen-test = "0.3.33" - -[profile.release] -opt-level = "s"