From f5d956731e6dc9d9c9ff7f558364fd73cb8b42b0 Mon Sep 17 00:00:00 2001 From: David Marcin Date: Wed, 1 Sep 2021 17:18:39 -0700 Subject: [PATCH 1/2] Add docs for error_format --- docs/BUILD.bazel | 1 + docs/symbols.bzl | 2 ++ 2 files changed, 3 insertions(+) diff --git a/docs/BUILD.bazel b/docs/BUILD.bazel index 2c73545797..5f4dd8d7d4 100644 --- a/docs/BUILD.bazel +++ b/docs/BUILD.bazel @@ -59,6 +59,7 @@ PAGES = dict([ "rust_benchmark", "rust_test", "rust_test_suite", + "error_format", "extra_rustc_flags", ], ), diff --git a/docs/symbols.bzl b/docs/symbols.bzl index f174b27eea..843f923eb7 100644 --- a/docs/symbols.bzl +++ b/docs/symbols.bzl @@ -41,6 +41,7 @@ load( ) load( "@rules_rust//rust:defs.bzl", + _error_format = "error_format", _extra_rustc_flags = "extra_rustc_flags", _rust_analyzer = "rust_analyzer", _rust_analyzer_aspect = "rust_analyzer_aspect", @@ -142,6 +143,7 @@ crate = _crate rustfmt_aspect = _rustfmt_aspect rustfmt_test = _rustfmt_test +error_format = _error_format extra_rustc_flags = _extra_rustc_flags incompatible_flag = _incompatible_flag fail_when_enabled = _fail_when_enabled From 41c13a413ff201e71584cef1738aa8e8186584ec Mon Sep 17 00:00:00 2001 From: David Marcin Date: Wed, 1 Sep 2021 17:55:50 -0700 Subject: [PATCH 2/2] Regenerate documentation --- docs/defs.md | 19 +++++++++++++++++++ docs/flatten.md | 19 +++++++++++++++++++ 2 files changed, 38 insertions(+) diff --git a/docs/defs.md b/docs/defs.md index 2941a29240..f591704f82 100644 --- a/docs/defs.md +++ b/docs/defs.md @@ -9,8 +9,27 @@ * [rust_benchmark](#rust_benchmark) * [rust_test](#rust_test) * [rust_test_suite](#rust_test_suite) +* [error_format](#error_format) * [extra_rustc_flags](#extra_rustc_flags) + + +## error_format + +
+error_format(name)
+
+ +Change the [--error-format](https://doc.rust-lang.org/rustc/command-line-arguments.html#option-error-format) flag from the command line with `--@rules_rust//:error_format`. See rustc documentation for valid values. + +**ATTRIBUTES** + + +| Name | Description | Type | Mandatory | Default | +| :------------- | :------------- | :------------- | :------------- | :------------- | +| name | A unique name for this target. | Name | required | | + + ## extra_rustc_flags diff --git a/docs/flatten.md b/docs/flatten.md index 30f3bd7821..24a69892b9 100644 --- a/docs/flatten.md +++ b/docs/flatten.md @@ -7,6 +7,7 @@ * [cargo_build_script](#cargo_build_script) * [crate](#crate) * [crate_universe](#crate_universe) +* [error_format](#error_format) * [extra_rustc_flags](#extra_rustc_flags) * [fail_when_enabled](#fail_when_enabled) * [incompatible_flag](#incompatible_flag) @@ -118,6 +119,24 @@ Environment Variables: | version | The version of cargo the resolver should use | String | optional | "1.54.0" | + + +## error_format + +
+error_format(name)
+
+ +Change the [--error-format](https://doc.rust-lang.org/rustc/command-line-arguments.html#option-error-format) flag from the command line with `--@rules_rust//:error_format`. See rustc documentation for valid values. + +**ATTRIBUTES** + + +| Name | Description | Type | Mandatory | Default | +| :------------- | :------------- | :------------- | :------------- | :------------- | +| name | A unique name for this target. | Name | required | | + + ## extra_rustc_flags