-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tracking Issue for trim-paths RFC 3127 #12137
Comments
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: rust-lang/rust#111540 (comment), which the new remap rule in the conclusion is implemented. I've updated the unresolved issues section in this tracking issue. |
Status update:
|
rust-lang/rust#107099 is just merged, so should be able to support for rustdoc. Edit: need to adjust cargo to pass |
Updated:
That potentially blocks this, if we would like to see |
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? |
status? |
@lina9992006 If you'd like to move this forward, here are areas we need helps:
|
why is hashing relevant here? |
A stable cross-platform hash algorithm helps |
Summary
RFC: #3127Nightly: path sanitization
Documentation: https://doc.rust-lang.org/nightly/cargo/reference/unstable.html#profile-trim-paths-option
Issues: Z-trim-paths
rustc tracking issue: rust-lang/rust#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
) feat(trim-paths): rustdoc supports trim-paths for diagnostics #14389--remap-path-prefix
and-Zremap-path-scope
in doctest (cargo test --doc
)CARGO_HOME
layout?C:/
, which essentially results in a different hash result from what on other platforms.cargo build
invocation may be unimportant. It took 500μs-1500μs for buidling cargo itself.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
-Ztrim-paths
#12625CARGO_TRIM_PATHS
for build scripts #12900trim-paths
from different profiles #12908The text was updated successfully, but these errors were encountered: