commit | 9443bbd60ff5933fe25f9097cb85dee2879eebec | [log] [tgz] |
---|---|---|
author | Marcel Hlopko <hlopko@google.com> | Thu Jun 24 10:30:51 2021 +0200 |
committer | GitHub <noreply@github.com> | Thu Jun 24 10:30:51 2021 +0200 |
tree | aecbbdcdc749d3735e458bae8b00abe16ae3635c | |
parent | 613c47065a3c3784af8041a1e200c998c71d03af [diff] |
Merge deps of related crates in Rust Analyzer support (#781) It can happen a single source file is present in multiple crates - there can be a `rust_library` with a `lib.rs` file, and a `rust_test` for the `test` module in that file. Tests can declare more dependencies than what library had. Therefore we had to collect all `RustAnalyzerInfo`s for a given crate and take deps from all of them. There's one exception - if the dependency is the same crate name as the the crate being processed, we don't add it as a dependency to itself. This is common and expected - `rust_test.crate` pointing to the `rust_library`.
This repository provides rules for building Rust projects with Bazel.
Please refer to the full documentation.