Skip to content
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

Reduce Linux and Windows binaries size #430

Closed
Luni-4 opened this issue Jan 15, 2021 · 1 comment · Fixed by #798
Closed

Reduce Linux and Windows binaries size #430

Luni-4 opened this issue Jan 15, 2021 · 1 comment · Fixed by #798

Comments

@Luni-4
Copy link
Collaborator

Luni-4 commented Jan 15, 2021

It would be helpful to try to reduce the binaries size produced by Rust for each platform. In the CI there are still tasks that could allow these improvements, like the package_windows_binary one, that could be used to install additional software in a simpler way

Useful links for Linux:

https://github.com/johnthagen/min-sized-rust

Useful links for Windows

https://www.codeslow.com/2019/12/tiny-windows-executable-in-rust.html

https://github.com/mcountryman/min-sized-rust-windows

Another useful alternative, both for Linux and Windows, could be splitting debug symbols in separate files, but currently this possibility is blocked in rust-lang/rust#72110

Alternative that makes use of external binaries both for Linux and Windows: http://www.sourceware.org/gdb/onlinedocs/gdb/Separate-Debug-Files.html

@Luni-4 Luni-4 changed the title Reduce Rust and Windows binaries Reduce Linux and Windows binaries size Jan 15, 2021
@marco-c
Copy link
Collaborator

marco-c commented Jan 18, 2021

I don't think we'll want to split debug symbols in separate files, it makes things harder to handle for little benefit. It's useful for a generic customer facing software like Firefox, but it doesn't make much sense for us.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants