Re:Making Rust binaries smaller by default
by emi2k01 on Wednesday January 24, 2024 @03:35AM
(#39115042)
Splitting the debug info from the executable is supported on the 3-big-OSes but only enabled by default on Windows (and maybe macOS?)
Re:Making Rust binaries smaller by default
by goku12 on Wednesday January 24, 2024 @03:46AM
(#39115121)
Many Linux distributions have debuginfod servers that supply split debugging symbols on demand. So one could argue that it's implemented by default on Linux too.
Re:Making Rust binaries smaller by default
by lifthrasiir on Wednesday January 24, 2024 @05:43AM
(#39115821)
Cargo does support `split-debuginfo` [1] but it still has some rough edges in my experience. I do think that is the ultimate way to go in the future.
[1] https://doc.rust-lang.org/cargo/reference/profiles.html#spli...
after all: without debug info (which you do not want to ship to customers necessarily), you cannot do profiling or debugging in any meaningful way...