[request] Add other compilation flags to reduce bundle size

Open Beginner friendly
#4,187 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 2 days

Nobody has claimed this yet.

Assessment

Difficulty
1/5
Estimated time
Under an hour
Newbie friendliness
85/100
Issue type
Documentation
Clarity
Clearly specified
Activity status
Active
Tech stack
markdown, rust
Domain
documentation

Research direction

This is a docs-only edit on the tauri-docs site. Find the page rendered from https://tauri.app/concept/size/#cargo-configuration in the content directory (likely something like content/docs/concept/size.mdx) and read the existing Cargo configuration section. Add the suggested rustflags entries, with a note that the pack-dyn-relocs flag is Android-specific for MinSDKVersion >= 28 and that force-unwind-tables=no pairs with panic = "abort". Done when the section includes the flags with those caveats and the site builds.

Written by the indexing model from the issue text.

Description

discuss enhancement
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
Dominant language
MDX
Stars
1.1k
Forks
900
Avg merge
2d 12h
Merged PRs (30d)
23

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from tauri-apps/tauri-docs

All issues in tauri-apps/tauri-docs

Similar issues

More Documentation issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.