web-to-desktop-framework-comparison icon indicating copy to clipboard operation
web-to-desktop-framework-comparison copied to clipboard

Consider adding minification build flags

Open nothingismagick opened this issue 3 years ago • 1 comments

Your build size is still too large. Rust offers a number of opportunities to make binaries smaller. Please see this page:

https://tauri.studio/en/docs/usage/guides/bundler/anti-bloat

And at least put this at the end of your Cargo.toml:

[profile.release]
panic = "abort"
codegen-units = 1
lto = true
incremental = false
opt-level = "s"

nothingismagick avatar Jul 02 '21 09:07 nothingismagick

I added your instructions to both Cargo.toml. I don't know alot about Rust, will test some more changes later, but it's a good start :)

Keeping this issue open to remind myself

Elanis avatar Aug 07 '21 14:08 Elanis