Closed
Description
Since metadata is only needed when building things, but the DLL is needed at runtime, it would be better if the metadata was moved to the LIB import library instead since that is only needed when building things as well. This would save significantly on space when distributing a binary with DLLs.
Activity
vadimcn commentedon Nov 29, 2015
Arguably, the same could be said about dylibs on all platforms.
#23366
vadimcn commentedon Nov 22, 2016
Can we close this now that we've got cdylibs?
retep998 commentedon Nov 22, 2016
The problem still exists for regular dylibs though. It's just not as important of a problem anymore.
bjorn3 commentedon May 15, 2022
cc #93945
-Zembed-metadata
to allow omitting full metadata from rlibs and dylibs #137535-Zsplit-metadata
flag to reduce disk usage rust-lang/compiler-team#851Auto merge of rust-lang#137535 - Kobzol:split-metadata, r=petrochenkov
1 remaining item