When I tried to bump my version of async-std to 0.6.2 from 0.6.1, I started encountering the following error:
>cargo run
error: failed to download `async-std v1.6.2`
Caused by:
unable to get packages from source
Caused by:
failed to unpack package `async-std v1.6.2`
Caused by:
failed to unpack entry at `async-std-1.6.2/CHANGELOG.md`
Caused by:
failed to unpack `/home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/async-std-1.6.2/CHANGELOG.md`
Caused by:
failed to unpack `async-std-1.6.2/CHANGELOG.md` into `/home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/async-std-1.6.2/CHANGELOG.md`
Caused by:
unexpected end of file
Then when I tried reverted the Cargo.toml entry to downgrade the version back to 0.6.1, the Cargo.lock still retained the 0.6.2 version, even after regenerating it.
I'm not really sure what to do now, and any help would be appreciated! Thanks in advance
The error is strange, it looks like you might be out of free disk space or something? I don't know what kind of validation cargo does for packages, it might also just be a corrupted archive. You can clear the cargo cache with rm -rf ~/.cargo/registry/cache/ if necessary.