Do not add CcInfo from dependencies that don't have them (#369)

The current code is failing for any cdylib or staticlib with
a rust dependency (without CcInfo provider).

Fixes #368.
2 files changed
tree: 6046a38bbe90fa9021bfcf8ecc98a84f6d166f1d
  1. .bazelci/
  2. bindgen/
  3. cargo/
  4. docs/
  5. examples/
  6. proto/
  7. rust/
  8. test/
  9. tools/
  10. util/
  11. wasm_bindgen/
  12. .gitignore
  13. AUTHORS
  14. BUILD
  15. CODEOWNERS
  16. CONTRIBUTING.md
  17. CONTRIBUTORS
  18. libc.BUILD
  19. LICENSE.txt
  20. package-lock.json
  21. package.json
  22. README.md
  23. renovate.json
  24. WORKSPACE
  25. workspace.bzl
README.md

Rust Rules

  • Postsubmit Build status
  • Postsubmit + Current Bazel Incompatible Flags Build status

Overview

This repository provides rules for building Rust projects with Bazel.

Please refer to the full documentation.