News for hackers. Stuff that matters.
Re:Making Rust binaries smaller by default by stefs on Wednesday January 24, 2024 @09:17AM (#39117580)
Isn't that the linkers job? To throw away unused functions?

I remember this being the standard decades ago. It might not make sense in certain situations (i.e. with reflection), but that shouldn't be the default case anyway. What happened?

Re:Making Rust binaries smaller by default by pdimitar on Wednesday January 24, 2024 @09:18AM (#39117593)
Yes, but I was left with the impression that including the stdlib in its entirety prevents proper tree-shaking / dead code elimination. Could be wrong.