Declare dependencies in vendored crates (#2246)

Currently, when you run `bazel build --enable_bzlmod
//crate_universe:bin`, you get the error `undefined repo @cui`.

When you add a dependency on CUI, you get errors like `undefined repo
@cui__<crate>-<version>` (the repo for the third party crate).

This change will allow us to automatically declare dependencies on our
third party crates from bzlmod (see
https://docs.google.com/document/d/1dj8SN5L6nwhNOufNqjBhYkk5f-BJI_FPYWKxlB3GAmA/edit#heading=h.5mcn15i0e1ch).

---------

Co-authored-by: UebelAndre <github@uebelandre.com>
191 files changed
tree: 8aa98084c7e6421de164f6d30a66d5f393fd5444
  1. .bazelci/
  2. .bcr/
  3. .github/
  4. bindgen/
  5. cargo/
  6. crate_universe/
  7. docs/
  8. examples/
  9. ffi/
  10. proto/
  11. rust/
  12. test/
  13. tools/
  14. util/
  15. wasm_bindgen/
  16. .bazelignore
  17. .bazelrc
  18. .clang-format
  19. .gitattributes
  20. .gitignore
  21. .prettierrc.toml
  22. .rustfmt.toml
  23. ARCHITECTURE.md
  24. AUTHORS
  25. BUILD.bazel
  26. CODEOWNERS
  27. COMPATIBILITY.md
  28. CONTRIBUTING.md
  29. CONTRIBUTORS
  30. LICENSE.txt
  31. MODULE.bazel
  32. README.md
  33. version.bzl
  34. 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.