-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Support custom remapping rules with trim-paths for bootstrap #17309
Copy link
Copy link
Closed
Labels
C-feature-requestCategory: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`S-needs-infoStatus: Needs more info, such as a reproduction or more background for a feature request.Status: Needs more info, such as a reproduction or more background for a feature request.Z-trim-pathsNightly: path sanitizationNightly: path sanitization
Description
Activity
Metadata
Metadata
Assignees
Labels
C-feature-requestCategory: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`S-needs-infoStatus: Needs more info, such as a reproduction or more background for a feature request.Status: Needs more info, such as a reproduction or more background for a feature request.Z-trim-pathsNightly: path sanitizationNightly: path sanitization
Problem
In rust-lang/rust we use a custom (and unique) remapping schema, it would be necessary for bootstrap and rust-lang/rust that Cargo supports using a custom remapping rule, otherwise we won't be able to use Cargo trim-paths feature.
https://github.com/rust-lang/rust/blob/1b29cfdbee8ee37333f4b24afb936350eb57e705/src/bootstrap/src/lib.rs#L362-L370
Proposed Solution
A potential solution could be to provide a nightly-only environment variable that bootstrap could set.
Notes
Related to #12137