This change updates the rust_analyzer_aspect to attempt to match generated crate root sources to srcs inputs and use the the path of the source file in place of the generated path. The generated path is then added to sources.include_dirs for compatibility. The impact of this can be seen in the following diff of the @rules_rust//:rust-project.json file:
This change updates the
rust_analyzer_aspect
to attempt to match generated crate root sources tosrcs
inputs and use the the path of the source file in place of the generated path. The generated path is then added tosources.include_dirs
for compatibility. The impact of this can be seen in the following diff of the@rules_rust//:rust-project.json
file:closes https://github.com/bazelbuild/rules_rust/issues/2716