Skip to content

Commit

Permalink
Strip release builds, Optimize wasm build for size no strip
Browse files Browse the repository at this point in the history
Signed-off-by: Luis Garcia <[email protected]>
  • Loading branch information
luigi311 committed Oct 30, 2024
1 parent fbd79b7 commit 635ad0f
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,9 @@ default-members = [
[profile.release]
lto = "thin"
opt-level = 3
strip = true

[profile.release.package.tanoshi-web]
# Optimize wasm build for size
# Strip symbols breaks wasm opt https://github.com/rust-lang/rust/issues/93294
opt-level = "s"
2 changes: 1 addition & 1 deletion crates/tanoshi-tauri/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ build = "src/build.rs"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[build-dependencies]
tauri-build = "2.0"
tauri-build = { version = "2.0", features = [] }

[dependencies]
serde_json = "1.0"
Expand Down

0 comments on commit 635ad0f

Please sign in to comment.