Open ehuss opened 1 year ago
Last status update I'm aware of
Is this working on Linux, well enough that we could ship it for Linux without promising macOS support?
This is the latest status of it on rustc side: https://github.com/rust-lang/rust/issues/111540#issuecomment-2014748609, which the new remap rule in the conclusion is implemented. I've updated the unresolved issues section in this tracking issue.
Status update:
-Ztrim-paths
also work for rustdochttps://github.com/rust-lang/rust/pull/107099 is just merged, so should be able to support for rustdoc.
Edit: need to adjust cargo to pass --remap-path-prefix
to rustdoc invocations.
Updated:
That potentially blocks this, if we would like to see -Ztrim-paths
supports also for rustdoc invocations.
Updated:
- doctest has supported remapping: Simplify trim-paths feature by merging all debuginfo options together rust#122450
- rustdoc diagnostics hasn't: rustdoc: use remap-path-prefix rust#69264 (comment)
That potentially blocks this, if we would like to see
-Ztrim-paths
supports also for rustdoc invocations.
both of those linked are closed/merged what is left blocking to get trimpaths working?
both of those linked are closed/merged what is left blocking to get trimpaths working?
@liciana24 There are some unresolved issues listed in the PR description I just updated.
It should minimally work. Any feedback of it not working?
Summary
RFC: #3127 Documentation: https://doc.rust-lang.org/nightly/cargo/reference/unstable.html#profile-trim-paths-option Issues: https://github.com/rust-lang/cargo/labels/Z-trim-paths rustc tracking issue: https://github.com/rust-lang/rust/issues/111540
This adds a new profile setting (among other things) to control how paths are sanitized in the resulting binary.
Unresolved Issues
--remap-path-prefix
work withrustdoc
and doctest?--remap-path-prefix
in rustdoc invocations (cargo doc
) https://github.com/rust-lang/cargo/pull/14389--remap-path-prefix
and-Zremap-path-scope
in doctest (cargo test --doc
)CARGO_HOME
layout?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.
Implementation history