Skip to content

Integrate Cargo configuration recommendations from the documentation into a default template #945

@zamazan4ik

Description

@zamazan4ik

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:

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions