Remove dependency formats from crate metadata #96708
Labels
A-metadata
Area: Crate metadata
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
It only really needs to be stored for dylibs and only the dependency format for said dylib and not for any other crate types also used. It can be stored in a separate section for dylibs. For example
.rsdpfmt
(needs to stay within the 8 char limit for COFF section names). Furthermore omitting it from the crate metadata is necessary for implementing bazelbuild/rules_rust#228 (comment) as otherwise the dependency formats included in the crate metadata of the first compilation wouldn't match the second compilation due to dylibs not being available yet. Not encoding it in the crate metadata may also improve performance a tiny bit although rlib only crates already encode an empty list anyway.The text was updated successfully, but these errors were encountered: