Skip to content

Reduce Linux and Windows binaries size #430

@Luni-4

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions