Tracking Issue for `-Zembed-metadata`
Author: KobzolCreated May 6, 2025Updated Sep 28, 2026
LabelsA-build-executionT-cargoC-tracking-issueS-waiting-on-feedback
Summary
Implementation:
- #15378
- #17149
- #17266
- #17267
Documentation: https://doc.rust-lang.org/nightly/cargo/reference/unstable.html#embed-metadata
The -Zembed-metadata=no flag tells Cargo to pass -Zembed-metadata=no to rustc, which saves disk space in the target directory, by avoiding generating duplicated metadata.
Unresolved Issues
- Is this a breaking change? Since rlibs/dylibs will not contain metadata after this change, it could break some users who depended on this. https://github.com/rust-lang/cargo/issues/17359
Future Extensions
No response
About tracking issues
Tracking issues are used to record the overall progress of implementation. They are also used as hubs connecting to other relevant issues, e.g., bugs or open design questions. A tracking issue is however not meant for large scale discussion, questions, or bug reports about a feature. Instead, open a dedicated issue for the specific matter and add the relevant feature gate label.
Source: rust-lang/cargo