-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Add longPathAware to the app manifest on Windows #7986
Copy link
Copy link
Closed
Labels
A-filesystemArea: issues with filesystemsArea: issues with filesystemsC-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`E-hardExperience: HardExperience: HardO-windowsOS: WindowsOS: WindowsS-needs-team-inputStatus: Needs input from team on whether/how to proceed.Status: Needs input from team on whether/how to proceed.
Metadata
Metadata
Assignees
Labels
A-filesystemArea: issues with filesystemsArea: issues with filesystemsC-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`E-hardExperience: HardExperience: HardO-windowsOS: WindowsOS: WindowsS-needs-team-inputStatus: Needs input from team on whether/how to proceed.Status: Needs input from team on whether/how to proceed.
Type
Fields
Give feedbackNo fields configured for issues without a type.
Describe the problem you are trying to solve
On Windows, when the directory where the project files are located is too long, cargo fails with various file-related errors.
Describe the solution you'd like
Rust should handle long path ok. We just have to add a
longPathAwareto the app manifest:https://docs.microsoft.com/en-us/windows/win32/fileio/naming-a-file
Notes
This issue only occurs if the file paths cargo wants to touch are too long.
This happens with paths like these: