You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've hit this as well, is the problem as simple as changing C:src\main.rs to C:\src\main.rs (a \ after C:)? If someone could point me to the related code I could give it a try.
Triage: As of rust 1.47, there is no crash. The error message you see now is the following:
error: failed to get `x` as a dependency of package `crash v0.1.0 (C:\Users\achin\tmp\27\crash)`
Caused by:
failed to load source for dependency `x`
Caused by:
Unable to update C:\
Caused by:
failed to read `C:\Cargo.toml`
Caused by:
The system cannot find the file specified. (os error 2)
Problem
On windows, cargo crashes when
"/"
is used as a path for a dependency.Backtrace
Steps
cargo new crash
cd crash
Cargo.toml
, and paste inx = {path = "/"}
in the[dependencies]
sectioncargo build
Possible Solution(s)
On Windows, don't permit
"/"
as a path for a dependency?Notes
Output of
cargo version
:cargo 1.41.0-nightly (8280633 2019-11-11)
cargo 1.39.0 (1c6ec66 2019-09-30)
https://github.com/Evrey helped spark the idea of this bug
The text was updated successfully, but these errors were encountered: