bazelbuild / bazelbuild/rules_rust

Does rust-analyzer support cargo check?

Open
#1,548 3 comments 1 reaction 0 assignees View on GitHub
needs-triage rust-analyzer
Dominant language
Starlark
Stars
843
Forks
651
Avg merge
2d 18h
Merged PRs (30d)
15

Description

I found that rust-analyzer based on Bazel does not show cargo check result on VSCode, e.g. when setting up rust analyzer for this [example](https://github.com/bazelbuild/rules_rust/tree/main/examples).

I'd like to ask whether this should be a problem because of my environment, or current rules_rust does not support cargo check.

For my understanding, rust-analyzer rules generates `rust-project.json` to just capture dependences of third parties or project structures.
So we should add another [VSCode task](https://github.com/rust-lang/rust-analyzer/blob/master/docs/user/manual.adoc#compiler-feedback-from-external-commands) to run cargo check with Bazel to show the result of cagro check.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.