Added logging to crate_universe checksum validation (#2657)

When `CARGO_BAZEL_DEBUG=1` is enabled, the following log lines will
print when determining repins.
```
Query 2024-05-16T15:17:26.592139Z DEBUG cargo_bazel::lockfile: cargo-bazel version hash: ef009193262ad048e8890de3f6c4c66f8f26584396e9b6f544894b337ab951ce
Query 2024-05-16T15:17:26.592402Z DEBUG cargo_bazel::lockfile: lockfile context hash: a89c68580b8ac127d1c3d3a700c3c895d107d0826a84c6594c0b4d6c55459af8
Query 2024-05-16T15:17:26.592417Z DEBUG cargo_bazel::lockfile: workspace config hash: baf129ecaaf01eda9020a45991fe804ce7def5e3dc600e8f4f9b99c814ab5635
Query 2024-05-16T15:17:26.592453Z DEBUG cargo_bazel::lockfile: splicing manifest hash: dceb142aa8d5be9cec3bf5d6318150b17c874a7ac84ca3fd9a608b3df279435c
Query 2024-05-16T15:17:26.592456Z DEBUG cargo_bazel::lockfile: Cargo version hash: 573f7bac3e83c5bd86e2fc369f5ecdafc3db984a9641f9f72b6bf68ab060f9d6
Query 2024-05-16T15:17:26.592458Z DEBUG cargo_bazel::lockfile: Rustc version hash: 25b2309140d57d18083da87e1597ef66785a693f2c12dbd7c6912728a2fbce1c
Query 2024-05-16T15:17:26.592461Z DEBUG cargo_bazel::lockfile: Digest hash: 81997a51e91981729d56b9118839163206d491451a10bf9611c6037d1ae2f665
Error: Digests do not match: Current Digest("4cdd2a75d814f49c49d7c02588accb2bc780d3cb1c0f718a83d7edffe4bbebe0") != Expected Digest("81997a51e91981729d56b9118839163206d491451a10bf9611c6037d1ae2f665")
```
24 files changed
tree: e63067695a1a5d65aaa3fbe3e7ca2ae1d63ace4c
  1. .bazelci/
  2. .bcr/
  3. .github/
  4. bindgen/
  5. cargo/
  6. crate_universe/
  7. docs/
  8. examples/
  9. ffi/
  10. nix/
  11. proto/
  12. rust/
  13. test/
  14. tools/
  15. util/
  16. wasm_bindgen/
  17. .bazelignore
  18. .bazelrc
  19. .clang-format
  20. .envrc
  21. .gitattributes
  22. .gitignore
  23. .prettierrc.toml
  24. .rustfmt.toml
  25. ARCHITECTURE.md
  26. AUTHORS
  27. BUILD.bazel
  28. CODEOWNERS
  29. COMPATIBILITY.md
  30. CONTRIBUTING.md
  31. CONTRIBUTORS
  32. LICENSE.txt
  33. MODULE.bazel
  34. README.md
  35. version.bzl
  36. WORKSPACE.bazel
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.