Skip to content

Commit

Permalink
fix(build): move wasm opt-level to root package
Browse files Browse the repository at this point in the history
  • Loading branch information
Zageron committed Oct 8, 2022
1 parent 5d49596 commit b9af7fe
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
9 changes: 9 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
4 changes: 0 additions & 4 deletions crates/rrr_wasm/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit b9af7fe

Please sign in to comment.