-
Notifications
You must be signed in to change notification settings - Fork 147
Description
Hi!
Tauri has a page in the documentation about recommended Cargo configuration features that can help people to optimize Tauri-based app size. However, these optimizations are not enabled by default in the generated by create-tauri-app Tauri projects.
I propose an idea about enabling these optimizations for a default Tauri template in create-tauri-app. It makes easier to Tauri users enable required optimizations by default, that leads to smaller by default Tauri apps. Even if these change won't update all existing Tauri apps, at very least newly generated projects will use new more optimized configuration from the day one.
I've done a similar thing to Ratatui templates in this PR. Initially it was even inspired by the Tauri documentation.
Here I collected some open-source Tauri app examples, where the optimization were enabled after my report:
- Use recommended by Tauri Cargo configuration options at least for Release builds aegixx/aws-loggy#28
- Use recommended by Tauri Cargo configuration options at least for Release builds newfull5/PasteSheets#1
- Use recommended by Tauri Cargo configuration options at least for Release builds markrai/gitpow#4
- Enable Link-Time Optimization (LTO) for the Tauri part BDenizKoca/Tideflow-md-to-pdf#5
I have more of them, something around ~30 Tauri-based projects (most of them are merged) - I am just a bit lazy to copy&paste all of them (however, can show them if you are interested). In my experience, Tauri users just miss this part of documentation, and are happy to enable these optimizations after my report.
Thank you.