commit | 25411eebea3d4964bb1caf3fc30a3dd994f61e32 | [log] [tgz] |
---|---|---|
author | Ricard Solé <hola@ricard.im> | Wed Nov 01 05:18:52 2023 +0100 |
committer | GitHub <noreply@github.com> | Tue Oct 31 21:18:52 2023 -0700 |
tree | b6785e78ab167ebe7efdda2555321af031bbc7f3 | |
parent | 4aafa0af925b855432020e197e474bb180adf9e4 [diff] |
[prost] includes prost crate infos in rust_analyzer_aspect (#2232) The change is fairly straightforward, but I did need to move prost providers up to `prost/providers.bzl` and out of `private/prost.bzl` to avoid a cyclic dependency. What we do is: * change `rust_prost_library` to return the `rust_proto_info` provider * in the `rust-analyzer` aspect we iterate over transitive dep infos and generate the appropriate `RustAnalyzerInfo` * lastly, we use the `crate_info` from `ProstProtoInfo` if we're processing a prost target as the "root" `crate_info` There are a couple of things I'm not sure are correct: 1. For every prost dep I set `deps` to `[]` - I think that's correct but I'm not sure-sure. 2. Similarly I set `proc_macro_dylib_path` to always `None` - again I think that's correct, but not sure-sure. Fixes #2121. --------- Co-authored-by: UebelAndre <github@uebelandre.com>
This repository provides rules for building Rust projects with Bazel.
General discussions and announcements take place in the GitHub Discussions, but there are additional places where community members gather to discuss rules_rust
.
Please refer to the full documentation.