Closed
Description
Example from examples/proto after running bazel run @rules_rust//tools/rust_analyzer:gen_rust_project
. Note that rust-analyzer shows a number of diagnostics, for example in grpc_client/src/main.rs:
The generated rust-project.json
has missing deps:
"crates": [
{
"display_name": "proto_bindings",
"root_module": "(...)/execroot/_main/bazel-out/k8-fastbuild/bin/proto_bindings/proto_bindings.lib.rs",
"edition": "2021",
"deps": [],
Adding below dependencies manually fixes the issue:
"crates": [
{
"display_name": "proto_bindings",
"root_module": "(...)/execroot/_main/bazel-out/k8-fastbuild/bin/proto_bindings/proto_bindings.lib.rs",
"edition": "2021",
"deps": [
{
"crate": 75,
"name": "prost"
},
{
"crate": 80,
"name": "tonic"
}
],
Metadata
Metadata
Assignees
Labels
No labels