[roll] Roll fuchsia [bazel] Add consolidate_crate_specs() method to bazel_rust_analyzer_utils.py

This function comes from @rules_rust//tools/rust_analyzer:aquery.rs and
is used to deduplicate library and test crate entries using the same IDs,
as this happens when a rust_test() depends on a rust_library().

The unit-tests also come from the same file.

+ Add LINT checks to ensure that whenever a new @rules_rust version
  is rolled to Fuchsia, the bazel_rust_analyzer_utils.py logic can be
  checked manually to stay in sync with it.

+ Remove minor type errors in module and its unit-tests.

Original-Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/1568833
Original-Revision: 451b65580fde950d8c386636b4b03c4538c6a69a
GitOrigin-RevId: 4c675e6518cecce2f8b682b20f07f4a0cd947cd2
Change-Id: I7b6fddbc2f7dabfb965433c66dc786d0565cb051
1 file changed
tree: ca0862ac7199fb4729e113ac026f21f298b8ae91
  1. ctf/
  2. git-hooks/
  3. infra/
  4. third_party/
  5. cobalt
  6. flower
  7. jiri.lock
  8. MILESTONE
  9. minimal
  10. prebuilts
  11. README.md
  12. stem
  13. test_durations
README.md

Integration

This repository contains Fuchsia's Global Integration manifest files.

Making changes

All changes should be made to the internal version of this repository. Our infrastructure automatically updates this version when the internal one changes.

Currently all changes must be made by a Google employee. Non-Google employees wishing to make a change can ask for assistance in one of the communication channels documented at get involved.

Obtaining the source

First install Jiri.

Next run:

$ jiri init
$ jiri import minimal https://fuchsia.googlesource.com/integration
$ jiri update

Third party

Third party projects should have their own subdirectory in ./third_party.