Skip to content

Updating crates.io index after every cargo clean #20143

@amv-dev

Description

@amv-dev

rust-analyzer version: rust-analyzer 0.3.2509-standalone
(also reproduced in later versions, including nightly)

rustc version: rustc 1.88.0 (6b00bc388 2025-06-23), rustc 1.87.0 (17067e9ac 2025-05-09)

editor or extension: neovim v0.11.2, default rust analyzer settings

code snippet to reproduce:

# Create new project
cargo init sample
cd sample

# run editor
nvim src/main.rs

Rust analyzer starts to show status "updating crates.io index". After sometime message "cargo metadata: ?" also appears. It blocks if there is no connection to the Internet.

On the other hand I can simply run cargo clean && cargo metadata without connection to the Internet.

Also I tried to set rust-analyzer.cargo.noDeps: true and rust-analyzer.cargo.autoreload: true, this does not solve the problem.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions