News for hackers. Stuff that matters.
Re:Making Rust binaries smaller by default by milianw on Wednesday January 24, 2024 @03:26AM (#39114992)
I applaud this initiative. yet I wonder - the ideal situation would be to not throw away the debug info (ever), but rather it should be put into an external file. even Linux supports this for many years and nowadays we even have direct support with dwarf5/dwo. is trust taken any action towards that direction?

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...

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...