Skip to content

Commit

Permalink
fix prost
Browse files Browse the repository at this point in the history
  • Loading branch information
sam-mccall committed Nov 29, 2024
1 parent ee743dc commit 8e13e6c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion extensions/prost/private/prost.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,10 @@ def _rust_prost_aspect_impl(target, ctx):
# https://github.com/rust-analyzer/rust-analyzer/blob/2021-11-15/crates/project_model/src/workspace.rs#L529-L531
cfgs = ["test", "debug_assertions"]

crate_id = "prost-" + crate_info.root.path

rust_analyzer_info = write_rust_analyzer_spec_file(ctx, ctx.rule.attr, ctx.label, RustAnalyzerInfo(
id = crate_id,
aliases = {},
crate = dep_variant_info.crate_info,
cfgs = cfgs,
Expand Down Expand Up @@ -332,7 +335,10 @@ def _rust_prost_library_impl(ctx):
transitive = transitive,
),
),
RustAnalyzerGroupInfo(deps = [proto_dep[RustAnalyzerInfo]]),
RustAnalyzerGroupInfo(
crate_specs = proto_dep[RustAnalyzerInfo].crate_specs
deps = proto_dep[RustAnalyzerInfo].deps,
),
]

rust_prost_library = rule(
Expand Down

0 comments on commit 8e13e6c

Please sign in to comment.