Skip to content

[request] Add other compilation flags to reduce bundle size #4187

Open

Description

@DomHeadroom

Question you want answered

App Size Reduction

Where did you look for an answer?

https://tauri.app/concept/size/#cargo-configuration

Page URL

https://tauri.app/concept/size/#cargo-configuration

Additional context

In the documentation, that can be found at: https://tauri.app/concept/size/#cargo-configuration, it might be usefull to add this compilation arguments in the config.toml.

rustflags = [
  "-C", "link-arg=-Wl,--pack-dyn-relocs=android", 
   #specific for android target with MinSDKVersion >= 28
  "-C", "force-unwind-tables=no", 
   #if you have already panic = "abort"
]

Are you willing to work on this yourself?

  • I want to work on this myself
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    discussDoes this require further discussion before it's dealt with?enhancementDoes it add or improve content?

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions