Skip to content

Reduce Linux and Windows binaries size #430

Description

@Luni-4

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

Activity

  1. changed the title [-]Reduce Rust and Windows binaries[/-] [+]Reduce Linux and Windows binaries size[/+] on Jan 15, 2021
  2. marco-c commented on Jan 18, 2021

    @marco-c
    Collaborator

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions