Closed MauriceKayser closed 2 years ago
Thanks for the report! This as also reported at https://github.com/rust-lang/cargo/issues/9976, and we have identified the cause and have a fix in the works.
As a workaround, I would recommend deleting your registry cache which is located at $CARGO_HOME/registry/index
. An alternate workaround is to use a nightly before nightly-2021-10-14.
Thanks! I did not know the correct search keywords to find the ticket you mentioned, my searching skills need improvement :^)
Creating a new binary project, removing the content of
main.rs
, adding[unstable] build-std = ["core"]
to.cargo/config.toml
, and runningcargo build --target x86_64-pc-windows-msvc
on my Windows x64 machine returns the following error:I checked the contents of
%UserProfile%\.rustup\toolchains\nightly-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\test\Cargo.toml
, it has the following dependency line:libc = { version = "0.2", default-features = false }
.Rust version:
rustc 1.58.0-nightly (1f12ac872 2021-10-17)