I'm getting an error downloading dependencies from crates.io.
Cargo.toml:
[dependencies]
rand = "0.7"
Error message:
Updating crates.io index
error: failed to get `rand` as a dependency of package `sample v0.1.0 (/home/carnot-engine/Desktop/sample)`
Caused by:
failed to load source for dependency `rand`
Caused by:
Unable to update registry `https://github.com/rust-lang/crates.io-index`
Caused by:
failed to fetch `https://github.com/rust-lang/crates.io-index`
Caused by:
object not found - no match for id (d504bf0857fda35a79e7343e8c2f446cf9052226); class=Odb (9); code=NotFound (-3)