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
| <aid="rust_binary-rustc_env_files"></a>rustc_env_files | Files containing additional environment variables to set for rustc.<br><br>These files should contain a single variable per line, of format <code>NAME=value</code>, and newlines may be included in a value by ending a line with a trailing back-slash (<code>\</code>).<br><br>The order that these files will be processed is unspecified, so multiple definitions of a particular variable are discouraged. | <ahref="https://bazel.build/docs/build-ref.html#labels">List of labels</a> | optional |[]|
182
182
| <aid="rust_binary-rustc_flags"></a>rustc_flags | List of compiler flags passed to <code>rustc</code>.<br><br>These strings are subject to Make variable expansion for predefined source/output path variables like <code>$location</code>, <code>$execpath</code>, and <code>$rootpath</code>. This expansion is useful if you wish to pass a generated file of arguments to rustc: <code>@$(location //package:target)</code>. | List of strings | optional |[]|
183
183
| <aid="rust_binary-srcs"></a>srcs | List of Rust <code>.rs</code> source files used to build the library.<br><br>If <code>srcs</code> contains more than one file, then there must be a file either named <code>lib.rs</code>. Otherwise, <code>crate_root</code> must be set to the source file that is the root of the crate to be passed to rustc to build this crate. | <ahref="https://bazel.build/docs/build-ref.html#labels">List of labels</a> | optional |[]|
184
+
| <aid="rust_binary-stamp"></a>stamp | Embed additional information into the binaries.<br><br>By default stamping is controlled by the --stamp flag. See https://docs.bazel.build/versions/main/user-manual.html#workspace_status and https://docs.bazel.build/versions/main/user-manual.html#flag--stamp.| Integer | optional | -1 |
184
185
| <aid="rust_binary-version"></a>version | A version to inject in the cargo environment variable. | String | optional | "0.0.0" |
| <aid="rust_binary-rustc_env_files"></a>rustc_env_files | Files containing additional environment variables to set for rustc.<br><br>These files should contain a single variable per line, of format <code>NAME=value</code>, and newlines may be included in a value by ending a line with a trailing back-slash (<code>\</code>).<br><br>The order that these files will be processed is unspecified, so multiple definitions of a particular variable are discouraged. | <ahref="https://bazel.build/docs/build-ref.html#labels">List of labels</a> | optional |[]|
350
350
| <aid="rust_binary-rustc_flags"></a>rustc_flags | List of compiler flags passed to <code>rustc</code>.<br><br>These strings are subject to Make variable expansion for predefined source/output path variables like <code>$location</code>, <code>$execpath</code>, and <code>$rootpath</code>. This expansion is useful if you wish to pass a generated file of arguments to rustc: <code>@$(location //package:target)</code>. | List of strings | optional |[]|
351
351
| <aid="rust_binary-srcs"></a>srcs | List of Rust <code>.rs</code> source files used to build the library.<br><br>If <code>srcs</code> contains more than one file, then there must be a file either named <code>lib.rs</code>. Otherwise, <code>crate_root</code> must be set to the source file that is the root of the crate to be passed to rustc to build this crate. | <ahref="https://bazel.build/docs/build-ref.html#labels">List of labels</a> | optional |[]|
352
+
| <aid="rust_binary-stamp"></a>stamp | Embed additional information into the binaries.<br><br>By default stamping is controlled by the --stamp flag. See https://docs.bazel.build/versions/main/user-manual.html#workspace_status and https://docs.bazel.build/versions/main/user-manual.html#flag--stamp.| Integer | optional | -1 |
352
353
| <aid="rust_binary-version"></a>version | A version to inject in the cargo environment variable. | String | optional | "0.0.0" |
0 commit comments