-
Notifications
You must be signed in to change notification settings - Fork 123
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Please strip release binary #738
Comments
See https://github.com/johnthagen/min-sized-rust Here are some stats on the different flags I used and how much each step reduced the binary size: | Method | Size | Diff (%) | |-----------------------------|--------------------|---------:| | Master | 27633280 (27.6MB) | N/A | | `strip` | 19544600 (19.5MB) | -29.3% | | `strip` + `lto` | 19028504 (19.0MB) | -31.1% | | `strip` + `lto` + `codegen` | 18971160 (19.97MB) | -31.3% | Closes crate-ci#738.
#791 attempted to do what this issue directly asked. I have not looked into stripping before but my concerns are
Unless there is a reason we shouldn't do (2), that means we need to not just strip but we also need to make sure our release process includes the separate debug symbols in the payload. At that point, I'm not as sure as to the benefit of doing this. |
I am from an old world 👴🏻 Note Currently my |
If you have unqualified users please close this issue. |
and
is a combo that became available in some recent Rust release I've been using nowadays that makes the binary smaller, yet preserves the (most essential?) symbols which makes stacktraces in errors and panics informative.
I'd be interested in how to get it done. |
Thank you. |
The
typos
binary gets smaller when stripping:strip typos
The text was updated successfully, but these errors were encountered: