How do I debug `cargo build` hanging at "Updating index"?

My Rust project no longer builds after some conflicts between my RLS plugin and terminal build. I searched around the web and found suggestion of removing my ~/.cargo/registry/index/*, but after that I can't even build any project.

Now the build always stops at

Updating index

Passing in the --verbose option doesn't help so I don't even know whether it's dying. What should I do next? How to debug this issue?


  • Change cargo source in ~/.cargo/config. This works for me.

    For example:

    registry = ""
    replace-with = 'ustc'
    registry = "git://"