Closed
Description
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 longPathAware
to the app manifest:
https://docs.microsoft.com/en-us/windows/win32/fileio/naming-a-file
<application xmlns="urn:schemas-microsoft-com:asm.v3">
<windowsSettings xmlns:ws2="http://schemas.microsoft.com/SMI/2016/WindowsSettings">
<ws2:longPathAware>true</ws2:longPathAware>
</windowsSettings>
</application>
Notes
This issue only occurs if the file paths cargo wants to touch are too long.
This happens with paths like these:
C:\Users\User\AppData\Local\Yarn\Cache\v6\.tmp\19aa03367eb9c4791798fcfbbdd8d7d4.e2c16fa02b2d9250fe13c2054c37a11aef5c0da3.prepare\native\target\x86_64-pc-windows-msvc\release\.fingerprint\semver-parser-dc26c18a352c24f5\lib-semver_parser-dc26c18a352c24f5.json