-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Tracking Issue for trim-paths RFC 3127 #12137
Copy link
Copy link
Open
Labels
A-profilesArea: profilesArea: profilesC-tracking-issueCategory: A tracking issue for something unstable.Category: A tracking issue for something unstable.S-waiting-on-feedbackStatus: An implemented feature is waiting on community feedback for bugs or design concerns.Status: An implemented feature is waiting on community feedback for bugs or design concerns.Z-trim-pathsNightly: path sanitizationNightly: path sanitization
Metadata
Metadata
Assignees
Labels
A-profilesArea: profilesArea: profilesC-tracking-issueCategory: A tracking issue for something unstable.Category: A tracking issue for something unstable.S-waiting-on-feedbackStatus: An implemented feature is waiting on community feedback for bugs or design concerns.Status: An implemented feature is waiting on community feedback for bugs or design concerns.Z-trim-pathsNightly: path sanitizationNightly: path sanitization
Type
Fields
Give feedbackNo fields configured for issues without a type.
Projects
Status
In Progress
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-prefixwork withrustdocand doctest?--remap-path-prefixin rustdoc invocations (cargo doc) feat(trim-paths): rustdoc supports trim-paths for diagnostics #14389--remap-path-prefixand-Zremap-path-scopein doctest (cargo test --doc)CARGO_HOMElayout? feature(SourceId): use stable hash from rustc-stable-hash #14917C:/, which essentially results in a different hash result from what on other platforms. This is unlikely to be resolved.cargo buildinvocation may be unimportant. It took 500μs-1500μs for buidling cargo itself.OSOandSOcannot be trimmed #13118Future 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_PATHSfor build scripts #12900trim-pathsfrom different profiles #12908build.build-dir#15614