Skip to content

Rust analyzer "cargo check" blocks debug builds #4616

@cart

Description

@cart

I'm working on a project where iterative compile times are important. If i make a change, save it, and immediately start a debug build then it will almost always get blocked by rust analyzer's invocation of the "cargo check" command. My build then needs to wait until cargo check completes.

Blocking doesn't occur if I run a release build. This creates the weird situation where release builds are actually faster to complete:

Finished release [optimized] target(s) in 0.80s

vs

Finished dev [unoptimized + debuginfo] target(s) in 1.31s

This is especially troublesome for initial cargo check runs, which can block builds for minutes at a time.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions