Do not include libraries when compiling (#3801)

In this PR, when in experimental_use_cc_common_link mode, we no longer
include linker, runtime libraries, and any transitive libraries to link
in the rustc compilation action. This makes incremental rebuilds faster
by not recompiling when once of those linker inputs changes.

Co-authored-by: Krasimir Georgiev <krasimir@google.com>
1 file changed
tree: 864d76e9a3a63fb5c46fdb6b0b1f486e4a98f16d
  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. .bazelversion
  18. .clang-format
  19. .clippy.toml
  20. .envrc
  21. .gitattributes
  22. .gitignore
  23. .pre-commit-config.yaml
  24. .prettierrc.toml
  25. .rustfmt.toml
  26. .typos.toml
  27. ARCHITECTURE.md
  28. AUTHORS
  29. BUILD.bazel
  30. CODEOWNERS
  31. COMPATIBILITY.md
  32. CONTRIBUTING.md
  33. CONTRIBUTORS
  34. LICENSE.txt
  35. MODULE.bazel
  36. README.md
  37. version.bzl
  38. WORKSPACE.bazel
  39. 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.