You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -638,6 +638,7 @@ Run the test with `bazel test //hello_lib:greeting_test`.
638
638
| <aid="rust_test-crate_root"></a>crate_root | The file that will be passed to `rustc` to be used for building this crate.<br><br>If `crate_root` is not set, then this rule will look for a `lib.rs` file (or `main.rs` for rust_binary) or the single file in `srcs` if `srcs` contains only one file. | <ahref="https://bazel.build/concepts/labels">Label</a> | optional |`None`|
639
639
| <aid="rust_test-edition"></a>edition | The rust edition to use for this crate. Defaults to the edition specified in the rust_toolchain. | String | optional |`""`|
640
640
| <aid="rust_test-env"></a>env | Specifies additional environment variables to set when the test is executed by bazel test. Values are subject to `$(rootpath)`, `$(execpath)`, location, and ["Make variable"](https://docs.bazel.build/versions/master/be/make-variables.html) substitution. | <ahref="https://bazel.build/rules/lib/dict">Dictionary: String -> String</a> | optional |`{}`|
641
+
| <aid="rust_test-env_inherit"></a>env_inherit | Specifies additional environment variables to inherit from the external environment when the test is executed by bazel test. | List of strings | optional |`[]`|
641
642
| <aid="rust_test-experimental_use_cc_common_link"></a>experimental_use_cc_common_link | Whether to use cc_common.link to link rust binaries. Possible values: [-1, 0, 1]. -1 means use the value of the toolchain.experimental_use_cc_common_link boolean build setting to determine. 0 means do not use cc_common.link (use rustc instead). 1 means use cc_common.link. | Integer | optional |`-1`|
642
643
| <aid="rust_test-malloc"></a>malloc | Override the default dependency on `malloc`.<br><br>By default, Rust binaries linked with cc_common.link are linked against `@bazel_tools//tools/cpp:malloc"`, which is an empty library and the resulting binary will use libc's `malloc`. This label must refer to a `cc_library` rule. | <ahref="https://bazel.build/concepts/labels">Label</a> | optional |`"@bazel_tools//tools/cpp:malloc"`|
643
644
| <aid="rust_test-platform"></a>platform | Optional platform to transition the test to. | <ahref="https://bazel.build/concepts/labels">Label</a> | optional |`None`|
@@ -1121,6 +1121,7 @@ Run the test with `bazel test //hello_lib:greeting_test`.
1121
1121
| <aid="rust_test-crate_root"></a>crate_root | The file that will be passed to `rustc` to be used for building this crate.<br><br>If `crate_root` is not set, then this rule will look for a `lib.rs` file (or `main.rs` for rust_binary) or the single file in `srcs` if `srcs` contains only one file. | <ahref="https://bazel.build/concepts/labels">Label</a> | optional |`None`|
1122
1122
| <aid="rust_test-edition"></a>edition | The rust edition to use for this crate. Defaults to the edition specified in the rust_toolchain. | String | optional |`""`|
1123
1123
| <aid="rust_test-env"></a>env | Specifies additional environment variables to set when the test is executed by bazel test. Values are subject to `$(rootpath)`, `$(execpath)`, location, and ["Make variable"](https://docs.bazel.build/versions/master/be/make-variables.html) substitution. | <ahref="https://bazel.build/rules/lib/dict">Dictionary: String -> String</a> | optional |`{}`|
1124
+
| <aid="rust_test-env_inherit"></a>env_inherit | Specifies additional environment variables to inherit from the external environment when the test is executed by bazel test. | List of strings | optional |`[]`|
1124
1125
| <aid="rust_test-experimental_use_cc_common_link"></a>experimental_use_cc_common_link | Whether to use cc_common.link to link rust binaries. Possible values: [-1, 0, 1]. -1 means use the value of the toolchain.experimental_use_cc_common_link boolean build setting to determine. 0 means do not use cc_common.link (use rustc instead). 1 means use cc_common.link. | Integer | optional |`-1`|
1125
1126
| <aid="rust_test-malloc"></a>malloc | Override the default dependency on `malloc`.<br><br>By default, Rust binaries linked with cc_common.link are linked against `@bazel_tools//tools/cpp:malloc"`, which is an empty library and the resulting binary will use libc's `malloc`. This label must refer to a `cc_library` rule. | <ahref="https://bazel.build/concepts/labels">Label</a> | optional |`"@bazel_tools//tools/cpp:malloc"`|
1126
1127
| <aid="rust_test-platform"></a>platform | Optional platform to transition the test to. | <ahref="https://bazel.build/concepts/labels">Label</a> | optional |`None`|
0 commit comments