Support passing arbitrary extra flags to rustc (#566)

* Support passing arbitrary extra codegen args to rustc

* Update defs.bzl

* buildifier fixes

* Add doc string

* Regenerate documentation

* fix lint

* PR feedback

* Regenerate documentation

* Fix link for codegen

* Regenerate documentation

* Rename to extra_rustc_flags

* Regenerate documentation

* buildifier

* Better method to exclude from the exec configuration

* Regenerate documentation

* Refactor is_exec_configuration utility function

* buildifier

* Regenerate documentation

* Add test

* Revert extraneous changes

* Regenerate documentation
14 files changed
tree: 5049ecf63dd19a51ae01e4fe0abd1870d3f9b8a7
  1. .bazelci/
  2. .github/
  3. bindgen/
  4. cargo/
  5. crate_universe/
  6. docs/
  7. examples/
  8. proto/
  9. rust/
  10. test/
  11. tools/
  12. util/
  13. wasm_bindgen/
  14. .bazelignore
  15. .bazelrc
  16. .gitignore
  17. ARCHITECTURE.md
  18. AUTHORS
  19. BUILD.bazel
  20. CODEOWNERS
  21. COMPATIBILITY.md
  22. CONTRIBUTING.md
  23. CONTRIBUTORS
  24. LICENSE.txt
  25. README.md
  26. WORKSPACE.bazel
  27. 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.

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.