Error download library

Error download library

2020/05/06
belajar
rust

Ada masalah ketika mencoba menggunakan library. Jadi ketika run syntax cargo run dapat hasil seperti ini

Updating crates.io index
error: failed to load source for a dependency on `actix`

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:
  failed to authenticate when downloading repository
attempted ssh-agent authentication, but none of the usernames `git` succeeded

Caused by:
  no authentication available

Coba googling dapet issue #2078 dari repository rustnya. Dari sana dapet solusi untuk menambah config cargo ~/.cargo/config.

[net]
git-fetch-with-cli = true

Selesai.

comments powered by Disqus