Closed bingmatv closed 3 months ago
-Zbuild-std
is broken with the latest nightly. Try using a nightly from a couple of days ago. -Zbuild-std
should be fixed within a couple of days.
@bjorn3 There's the same issue on ARM64 device. I tried
cargo generate-lockfile
In the project folder, or
find ~/.rustup/toolchains/nightly-aarch64-unknown-linux-gnu|grep Cargo.toml
will find some toml files on ARM64 host. Still run
cd ~/.rustup/toolchains/nightly-aarch64-unknown-linux-gnu/lib/rustlib/src/rust
cargo generate-lockfile
copy the generated lock file to the expected folder, and works on ARM64 host. It might work on x86_64 hosts. If there aren't any obvious differences between ARM64 and x86 environments, it may work on x86.
If there aren't any obvious differences between ARM64 and x86 environments, it may work on x86.
I tried it on x86_64, it also works. If the host is x86_64, it also has
lib/rustlib/src/rust
in the toolchain folder, copy the generated lockfile into that folder fixed this.