Skip to content

Commit

Permalink
rust-analyzer: Include prost_runtime as a dep for rust_prost_library (#…
Browse files Browse the repository at this point in the history
…2290)

This allows rust-analyzer to autocomplete definitions like ::decode()
and other methods that are found in ::prost::Message.
  • Loading branch information
DolceTriade authored Nov 28, 2023
1 parent 33c34f5 commit ddf01c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion proto/prost/private/prost.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ def _rust_prost_aspect_impl(target, ctx):
proto_deps = getattr(ctx.rule.attr, "deps", [])

direct_deps = []
transitive_deps = []
transitive_deps = [depset(runtime_deps)]
for proto_dep in proto_deps:
proto_info = proto_dep[ProstProtoInfo]

Expand Down

0 comments on commit ddf01c1

Please sign in to comment.