Add flag to set --error-format from command line (#525)

This PR adds the ability for users to pass the flag `--@io_bazel_rules_rust//:error_format=json` in order to get machine readable output. The options match https://doc.rust-lang.org/rustc/command-line-arguments.html#option-error-format

This is most useful for IDE integrations that want to be able to parse compilation errors.
4 files changed
tree: 07370c99fd303a86af8a167eac7c4661f2474682
  1. .bazelci/
  2. bindgen/
  3. cargo/
  4. docs/
  5. examples/
  6. proto/
  7. rust/
  8. test/
  9. tools/
  10. util/
  11. wasm_bindgen/
  12. .bazelignore
  13. .gitignore
  14. AUTHORS
  15. BUILD
  16. CODEOWNERS
  17. CONTRIBUTING.md
  18. CONTRIBUTORS
  19. LICENSE.txt
  20. README.md
  21. WORKSPACE
  22. 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.