Added test to ensure extension rules pin the right rules_rust version (#3052)

A test will now fail if the version is not updated in the extension
rules.
```
==================== Test output for //test/bzlmod:bzl_ext_version_test:

running 1 test
test module_bzl_has_correct_version ... FAILED

failures:

---- module_bzl_has_correct_version stdout ----
    name = "rules_rust",
thread 'module_bzl_has_correct_version' panicked at external/rules_rust~/test/bzl_version/bzl_ext_version_test.rs:76:5:
assertion `left == right` failed: Core rules_rust and the dependency for the current module are out of sync.
  left: "0.55.0"
 right: "0.54.1"
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace


failures:
    module_bzl_has_correct_version

test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
```
16 files changed
tree: 61c24a05dfe52d19c142f995c27b8be2788aace4
  1. .bazelci/
  2. .bcr/
  3. .github/
  4. cargo/
  5. crate_universe/
  6. docs/
  7. examples/
  8. extensions/
  9. ffi/
  10. nix/
  11. rust/
  12. test/
  13. tools/
  14. util/
  15. .bazelignore
  16. .bazelrc
  17. .clang-format
  18. .clippy.toml
  19. .envrc
  20. .gitattributes
  21. .gitignore
  22. .prettierrc.toml
  23. .rustfmt.toml
  24. ARCHITECTURE.md
  25. AUTHORS
  26. BUILD.bazel
  27. CODEOWNERS
  28. COMPATIBILITY.md
  29. CONTRIBUTING.md
  30. CONTRIBUTORS
  31. LICENSE.txt
  32. MODULE.bazel
  33. README.md
  34. version.bzl
  35. WORKSPACE.bazel
  36. WORKSPACE.bzlmod
README.md

Rust Rules

  • Postsubmit Build status

Overview

This repository provides rules for building Rust projects with Bazel.

Community

General discussions and announcements take place in the GitHub Discussions, but there are additional places where community members gather to discuss rules_rust.

Documentation

Please refer to the full documentation.