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
Copy file name to clipboardExpand all lines: docs/flatten.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -122,7 +122,7 @@ Run the benchmark test using: `bazel run //fibonacci:fibonacci_bench`.
122
122
| <aid="rust_benchmark-edition"></a>edition | The rust edition to use for this crate. Defaults to the edition specified in the rust_toolchain. | String | optional | "" |
123
123
| <aid="rust_benchmark-out_dir_tar"></a>out_dir_tar |__Deprecated__, do not use, see [#cargo_build_script] instead. | <ahref="https://bazel.build/docs/build-ref.html#labels">Label</a> | optional | None |
124
124
| <aid="rust_benchmark-proc_macro_deps"></a>proc_macro_deps | List of <code>rust_library</code> targets with kind <code>proc-macro</code> used to help build this library target. | <ahref="https://bazel.build/docs/build-ref.html#labels">List of labels</a> | optional |[]|
125
-
| <aid="rust_benchmark-rustc_env"></a>rustc_env | Dictionary of additional <code>"key": "value"</code> environment variables to set for rustc. | <ahref="https://bazel.build/docs/skylark/lib/dict.html">Dictionary: String -> String</a> | optional | {} |
125
+
| <aid="rust_benchmark-rustc_env"></a>rustc_env | Dictionary of additional <code>"key": "value"</code> environment variables to set for rustc.<br><br>Supports $(rootpath ...) expansion, so you can use this to pass in the path to a generated file or an external tool.| <ahref="https://bazel.build/docs/skylark/lib/dict.html">Dictionary: String -> String</a> | optional | {} |
126
126
| <aid="rust_benchmark-rustc_flags"></a>rustc_flags | List of compiler flags passed to <code>rustc</code>. | List of strings | optional |[]|
127
127
| <aid="rust_benchmark-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 |[]|
128
128
| <aid="rust_benchmark-version"></a>version | A version to inject in the cargo environment variable. | String | optional | "0.0.0" |
| <aid="rust_binary-out_dir_tar"></a>out_dir_tar |__Deprecated__, do not use, see [#cargo_build_script] instead. | <ahref="https://bazel.build/docs/build-ref.html#labels">Label</a> | optional | None |
241
241
| <aid="rust_binary-proc_macro_deps"></a>proc_macro_deps | List of <code>rust_library</code> targets with kind <code>proc-macro</code> used to help build this library target. | <ahref="https://bazel.build/docs/build-ref.html#labels">List of labels</a> | optional |[]|
242
-
| <aid="rust_binary-rustc_env"></a>rustc_env | Dictionary of additional <code>"key": "value"</code> environment variables to set for rustc. | <ahref="https://bazel.build/docs/skylark/lib/dict.html">Dictionary: String -> String</a> | optional | {} |
242
+
| <aid="rust_binary-rustc_env"></a>rustc_env | Dictionary of additional <code>"key": "value"</code> environment variables to set for rustc.<br><br>Supports $(rootpath ...) expansion, so you can use this to pass in the path to a generated file or an external tool.| <ahref="https://bazel.build/docs/skylark/lib/dict.html">Dictionary: String -> String</a> | optional | {} |
243
243
| <aid="rust_binary-rustc_flags"></a>rustc_flags | List of compiler flags passed to <code>rustc</code>. | List of strings | optional |[]|
244
244
| <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 |[]|
245
245
| <aid="rust_binary-version"></a>version | A version to inject in the cargo environment variable. | String | optional | "0.0.0" |
| <aid="rust_library-edition"></a>edition | The rust edition to use for this crate. Defaults to the edition specified in the rust_toolchain. | String | optional | "" |
536
536
| <aid="rust_library-out_dir_tar"></a>out_dir_tar |__Deprecated__, do not use, see [#cargo_build_script] instead. | <ahref="https://bazel.build/docs/build-ref.html#labels">Label</a> | optional | None |
537
537
| <aid="rust_library-proc_macro_deps"></a>proc_macro_deps | List of <code>rust_library</code> targets with kind <code>proc-macro</code> used to help build this library target. | <ahref="https://bazel.build/docs/build-ref.html#labels">List of labels</a> | optional |[]|
538
-
| <aid="rust_library-rustc_env"></a>rustc_env | Dictionary of additional <code>"key": "value"</code> environment variables to set for rustc. | <ahref="https://bazel.build/docs/skylark/lib/dict.html">Dictionary: String -> String</a> | optional | {} |
538
+
| <aid="rust_library-rustc_env"></a>rustc_env | Dictionary of additional <code>"key": "value"</code> environment variables to set for rustc.<br><br>Supports $(rootpath ...) expansion, so you can use this to pass in the path to a generated file or an external tool.| <ahref="https://bazel.build/docs/skylark/lib/dict.html">Dictionary: String -> String</a> | optional | {} |
539
539
| <aid="rust_library-rustc_flags"></a>rustc_flags | List of compiler flags passed to <code>rustc</code>. | List of strings | optional |[]|
540
540
| <aid="rust_library-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 |[]|
541
541
| <aid="rust_library-version"></a>version | A version to inject in the cargo environment variable. | String | optional | "0.0.0" |
@@ -792,7 +792,7 @@ Run the test with `bazel build //hello_lib:hello_lib_test`.
792
792
| <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 | "" |
793
793
| <aid="rust_test-out_dir_tar"></a>out_dir_tar |__Deprecated__, do not use, see [#cargo_build_script] instead. | <ahref="https://bazel.build/docs/build-ref.html#labels">Label</a> | optional | None |
794
794
| <aid="rust_test-proc_macro_deps"></a>proc_macro_deps | List of <code>rust_library</code> targets with kind <code>proc-macro</code> used to help build this library target. | <ahref="https://bazel.build/docs/build-ref.html#labels">List of labels</a> | optional |[]|
795
-
| <aid="rust_test-rustc_env"></a>rustc_env | Dictionary of additional <code>"key": "value"</code> environment variables to set for rustc. | <ahref="https://bazel.build/docs/skylark/lib/dict.html">Dictionary: String -> String</a> | optional | {} |
795
+
| <aid="rust_test-rustc_env"></a>rustc_env | Dictionary of additional <code>"key": "value"</code> environment variables to set for rustc.<br><br>Supports $(rootpath ...) expansion, so you can use this to pass in the path to a generated file or an external tool.| <ahref="https://bazel.build/docs/skylark/lib/dict.html">Dictionary: String -> String</a> | optional | {} |
796
796
| <aid="rust_test-rustc_flags"></a>rustc_flags | List of compiler flags passed to <code>rustc</code>. | List of strings | optional |[]|
797
797
| <aid="rust_test-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 |[]|
798
798
| <aid="rust_test-version"></a>version | A version to inject in the cargo environment variable. | String | optional | "0.0.0" |
@@ -963,7 +963,7 @@ The tools required for the `rust_wasm_bindgen` rule.
963
963
| Name | Description | Type | Mandatory | Default |
| <aid="rust_wasm_bindgen_toolchain-name"></a>name | A unique name for this target. | <ahref="https://bazel.build/docs/build-ref.html#name">Name</a> | required ||
966
-
| <aid="rust_wasm_bindgen_toolchain-bindgen"></a>bindgen | The label of a <code>bindgen</code> executable. | <ahref="https://bazel.build/docs/build-ref.html#labels">Label</a> | optional | None |
966
+
| <aid="rust_wasm_bindgen_toolchain-bindgen"></a>bindgen | The label of a <code>wasm-bindgen</code> executable. | <ahref="https://bazel.build/docs/build-ref.html#labels">Label</a> | optional | None |
Copy file name to clipboardExpand all lines: docs/rust.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -103,7 +103,7 @@ Run the benchmark test using: `bazel run //fibonacci:fibonacci_bench`.
103
103
| <aid="rust_benchmark-edition"></a>edition | The rust edition to use for this crate. Defaults to the edition specified in the rust_toolchain. | String | optional | "" |
104
104
| <aid="rust_benchmark-out_dir_tar"></a>out_dir_tar |__Deprecated__, do not use, see [#cargo_build_script] instead. | <ahref="https://bazel.build/docs/build-ref.html#labels">Label</a> | optional | None |
105
105
| <aid="rust_benchmark-proc_macro_deps"></a>proc_macro_deps | List of <code>rust_library</code> targets with kind <code>proc-macro</code> used to help build this library target. | <ahref="https://bazel.build/docs/build-ref.html#labels">List of labels</a> | optional |[]|
106
-
| <aid="rust_benchmark-rustc_env"></a>rustc_env | Dictionary of additional <code>"key": "value"</code> environment variables to set for rustc. | <ahref="https://bazel.build/docs/skylark/lib/dict.html">Dictionary: String -> String</a> | optional | {} |
106
+
| <aid="rust_benchmark-rustc_env"></a>rustc_env | Dictionary of additional <code>"key": "value"</code> environment variables to set for rustc.<br><br>Supports $(rootpath ...) expansion, so you can use this to pass in the path to a generated file or an external tool.| <ahref="https://bazel.build/docs/skylark/lib/dict.html">Dictionary: String -> String</a> | optional | {} |
107
107
| <aid="rust_benchmark-rustc_flags"></a>rustc_flags | List of compiler flags passed to <code>rustc</code>. | List of strings | optional |[]|
108
108
| <aid="rust_benchmark-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 |[]|
109
109
| <aid="rust_benchmark-version"></a>version | A version to inject in the cargo environment variable. | String | optional | "0.0.0" |
| <aid="rust_binary-out_dir_tar"></a>out_dir_tar |__Deprecated__, do not use, see [#cargo_build_script] instead. | <ahref="https://bazel.build/docs/build-ref.html#labels">Label</a> | optional | None |
222
222
| <aid="rust_binary-proc_macro_deps"></a>proc_macro_deps | List of <code>rust_library</code> targets with kind <code>proc-macro</code> used to help build this library target. | <ahref="https://bazel.build/docs/build-ref.html#labels">List of labels</a> | optional |[]|
223
-
| <aid="rust_binary-rustc_env"></a>rustc_env | Dictionary of additional <code>"key": "value"</code> environment variables to set for rustc. | <ahref="https://bazel.build/docs/skylark/lib/dict.html">Dictionary: String -> String</a> | optional | {} |
223
+
| <aid="rust_binary-rustc_env"></a>rustc_env | Dictionary of additional <code>"key": "value"</code> environment variables to set for rustc.<br><br>Supports $(rootpath ...) expansion, so you can use this to pass in the path to a generated file or an external tool.| <ahref="https://bazel.build/docs/skylark/lib/dict.html">Dictionary: String -> String</a> | optional | {} |
224
224
| <aid="rust_binary-rustc_flags"></a>rustc_flags | List of compiler flags passed to <code>rustc</code>. | List of strings | optional |[]|
225
225
| <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 |[]|
226
226
| <aid="rust_binary-version"></a>version | A version to inject in the cargo environment variable. | String | optional | "0.0.0" |
| <aid="rust_library-edition"></a>edition | The rust edition to use for this crate. Defaults to the edition specified in the rust_toolchain. | String | optional | "" |
315
315
| <aid="rust_library-out_dir_tar"></a>out_dir_tar |__Deprecated__, do not use, see [#cargo_build_script] instead. | <ahref="https://bazel.build/docs/build-ref.html#labels">Label</a> | optional | None |
316
316
| <aid="rust_library-proc_macro_deps"></a>proc_macro_deps | List of <code>rust_library</code> targets with kind <code>proc-macro</code> used to help build this library target. | <ahref="https://bazel.build/docs/build-ref.html#labels">List of labels</a> | optional |[]|
317
-
| <aid="rust_library-rustc_env"></a>rustc_env | Dictionary of additional <code>"key": "value"</code> environment variables to set for rustc. | <ahref="https://bazel.build/docs/skylark/lib/dict.html">Dictionary: String -> String</a> | optional | {} |
317
+
| <aid="rust_library-rustc_env"></a>rustc_env | Dictionary of additional <code>"key": "value"</code> environment variables to set for rustc.<br><br>Supports $(rootpath ...) expansion, so you can use this to pass in the path to a generated file or an external tool.| <ahref="https://bazel.build/docs/skylark/lib/dict.html">Dictionary: String -> String</a> | optional | {} |
318
318
| <aid="rust_library-rustc_flags"></a>rustc_flags | List of compiler flags passed to <code>rustc</code>. | List of strings | optional |[]|
319
319
| <aid="rust_library-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 |[]|
320
320
| <aid="rust_library-version"></a>version | A version to inject in the cargo environment variable. | String | optional | "0.0.0" |
@@ -473,7 +473,7 @@ Run the test with `bazel build //hello_lib:hello_lib_test`.
473
473
| <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 | "" |
474
474
| <aid="rust_test-out_dir_tar"></a>out_dir_tar |__Deprecated__, do not use, see [#cargo_build_script] instead. | <ahref="https://bazel.build/docs/build-ref.html#labels">Label</a> | optional | None |
475
475
| <aid="rust_test-proc_macro_deps"></a>proc_macro_deps | List of <code>rust_library</code> targets with kind <code>proc-macro</code> used to help build this library target. | <ahref="https://bazel.build/docs/build-ref.html#labels">List of labels</a> | optional |[]|
476
-
| <aid="rust_test-rustc_env"></a>rustc_env | Dictionary of additional <code>"key": "value"</code> environment variables to set for rustc. | <ahref="https://bazel.build/docs/skylark/lib/dict.html">Dictionary: String -> String</a> | optional | {} |
476
+
| <aid="rust_test-rustc_env"></a>rustc_env | Dictionary of additional <code>"key": "value"</code> environment variables to set for rustc.<br><br>Supports $(rootpath ...) expansion, so you can use this to pass in the path to a generated file or an external tool.| <ahref="https://bazel.build/docs/skylark/lib/dict.html">Dictionary: String -> String</a> | optional | {} |
477
477
| <aid="rust_test-rustc_flags"></a>rustc_flags | List of compiler flags passed to <code>rustc</code>. | List of strings | optional |[]|
478
478
| <aid="rust_test-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 |[]|
479
479
| <aid="rust_test-version"></a>version | A version to inject in the cargo environment variable. | String | optional | "0.0.0" |
| <aid="rust_wasm_bindgen_toolchain-name"></a>name | A unique name for this target. | <ahref="https://bazel.build/docs/build-ref.html#name">Name</a> | required ||
41
-
| <aid="rust_wasm_bindgen_toolchain-bindgen"></a>bindgen | The label of a <code>bindgen</code> executable. | <ahref="https://bazel.build/docs/build-ref.html#labels">Label</a> | optional | None |
41
+
| <aid="rust_wasm_bindgen_toolchain-bindgen"></a>bindgen | The label of a <code>wasm-bindgen</code> executable. | <ahref="https://bazel.build/docs/build-ref.html#labels">Label</a> | optional | None |
0 commit comments