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
print("The `rustfmt` attribute is deprecated. Please remove it on {} and register a `rustfmt_toolchain` instead.".format(
245
-
ctx.label,
246
-
))
247
-
248
217
returnplatform_common.ToolchainInfo(
249
218
bindgen=ctx.executable.bindgen,
250
219
clang=ctx.executable.clang,
@@ -309,11 +278,5 @@ For additional information, see the [Bazel toolchains documentation](https://doc
309
278
providers= [CcInfo],
310
279
mandatory=False,
311
280
),
312
-
"rustfmt": attr.label(
313
-
doc="**Deprecated**: Instead, register a `rustfmt_toolchain` and refer to the `rust_bindgen_toolchain.default_rustfmt` and `rust_bindgen.rustfmt` attributes.",
Generates a rust source file from a cc_library and a header.
@@ -366,15 +366,14 @@ Generates a rust source file from a cc_library and a header.
366
366
| <aid="rust_bindgen-cc_lib"></a>cc_lib | The cc_library that contains the <code>.h</code> file. This is used to find the transitive includes. | <ahref="https://bazel.build/concepts/labels">Label</a> | optional | <code>None</code> |
367
367
| <aid="rust_bindgen-clang_flags"></a>clang_flags | Flags to pass directly to the clang executable. | List of strings | optional | <code>[]</code> |
368
368
| <aid="rust_bindgen-header"></a>header | The <code>.h</code> file to generate bindings for. | <ahref="https://bazel.build/concepts/labels">Label</a> | optional | <code>None</code> |
369
-
| <aid="rust_bindgen-rustfmt"></a>rustfmt | Enable or disable running rustfmt on the generated file. | Boolean | optional | <code>True</code> |
@@ -416,7 +415,6 @@ For additional information, see the [Bazel toolchains documentation](https://doc
416
415
| <aid="rust_bindgen_toolchain-default_rustfmt"></a>default_rustfmt | If set, <code>rust_bindgen</code> targets will always format generated sources with <code>rustfmt</code>. | Boolean | optional | <code>False</code> |
417
416
| <aid="rust_bindgen_toolchain-libclang"></a>libclang | A cc_library that provides bindgen's runtime dependency on libclang. | <ahref="https://bazel.build/concepts/labels">Label</a> | optional | <code>None</code> |
418
417
| <aid="rust_bindgen_toolchain-libstdcxx"></a>libstdcxx | A cc_library that satisfies libclang's libstdc++ dependency. This is used to make the execution of clang hermetic. If None, system libraries will be used instead. | <ahref="https://bazel.build/concepts/labels">Label</a> | optional | <code>None</code> |
419
-
| <aid="rust_bindgen_toolchain-rustfmt"></a>rustfmt |**Deprecated**: Instead, register a <code>rustfmt_toolchain</code> and refer to the <code>rust_bindgen_toolchain.default_rustfmt</code> and <code>rust_bindgen.rustfmt</code> attributes. | <ahref="https://bazel.build/concepts/labels">Label</a> | optional | <code>None</code> |
420
418
421
419
422
420
<aid="rust_clippy"></a>
@@ -1752,7 +1750,7 @@ Declare dependencies needed for bindgen.
Generates a rust source file for `header`, and builds a rust_library.
@@ -1770,7 +1768,6 @@ Arguments are the same as `rust_bindgen`, and `kwargs` are passed directly to ru
1770
1768
| <aid="rust_bindgen_library-cc_lib"></a>cc_lib | The label of the cc_library that contains the .h file. This is used to find the transitive includes. | none |
1771
1769
| <aid="rust_bindgen_library-bindgen_flags"></a>bindgen_flags | Flags to pass directly to the bindgen executable. See https://rust-lang.github.io/rust-bindgen/ for details. |`None`|
1772
1770
| <aid="rust_bindgen_library-clang_flags"></a>clang_flags | Flags to pass directly to the clang executable. |`None`|
1773
-
| <aid="rust_bindgen_library-rustfmt"></a>rustfmt | Enable or disable running rustfmt on the generated file. |`True`|
1774
1771
| <aid="rust_bindgen_library-kwargs"></a>kwargs | Arguments to forward to the underlying <code>rust_library</code> rule. | none |
Generates a rust source file from a cc_library and a header.
@@ -68,15 +68,14 @@ Generates a rust source file from a cc_library and a header.
68
68
| <aid="rust_bindgen-cc_lib"></a>cc_lib | The cc_library that contains the <code>.h</code> file. This is used to find the transitive includes. | <ahref="https://bazel.build/concepts/labels">Label</a> | optional | <code>None</code> |
69
69
| <aid="rust_bindgen-clang_flags"></a>clang_flags | Flags to pass directly to the clang executable. | List of strings | optional | <code>[]</code> |
70
70
| <aid="rust_bindgen-header"></a>header | The <code>.h</code> file to generate bindings for. | <ahref="https://bazel.build/concepts/labels">Label</a> | optional | <code>None</code> |
71
-
| <aid="rust_bindgen-rustfmt"></a>rustfmt | Enable or disable running rustfmt on the generated file. | Boolean | optional | <code>True</code> |
@@ -118,7 +117,6 @@ For additional information, see the [Bazel toolchains documentation](https://doc
118
117
| <aid="rust_bindgen_toolchain-default_rustfmt"></a>default_rustfmt | If set, <code>rust_bindgen</code> targets will always format generated sources with <code>rustfmt</code>. | Boolean | optional | <code>False</code> |
119
118
| <aid="rust_bindgen_toolchain-libclang"></a>libclang | A cc_library that provides bindgen's runtime dependency on libclang. | <ahref="https://bazel.build/concepts/labels">Label</a> | optional | <code>None</code> |
120
119
| <aid="rust_bindgen_toolchain-libstdcxx"></a>libstdcxx | A cc_library that satisfies libclang's libstdc++ dependency. This is used to make the execution of clang hermetic. If None, system libraries will be used instead. | <ahref="https://bazel.build/concepts/labels">Label</a> | optional | <code>None</code> |
121
-
| <aid="rust_bindgen_toolchain-rustfmt"></a>rustfmt |**Deprecated**: Instead, register a <code>rustfmt_toolchain</code> and refer to the <code>rust_bindgen_toolchain.default_rustfmt</code> and <code>rust_bindgen.rustfmt</code> attributes. | <ahref="https://bazel.build/concepts/labels">Label</a> | optional | <code>None</code> |
122
120
123
121
124
122
<aid="rust_bindgen_dependencies"></a>
@@ -138,7 +136,7 @@ Declare dependencies needed for bindgen.
Generates a rust source file for `header`, and builds a rust_library.
@@ -156,7 +154,6 @@ Arguments are the same as `rust_bindgen`, and `kwargs` are passed directly to ru
156
154
| <aid="rust_bindgen_library-cc_lib"></a>cc_lib | The label of the cc_library that contains the .h file. This is used to find the transitive includes. | none |
157
155
| <aid="rust_bindgen_library-bindgen_flags"></a>bindgen_flags | Flags to pass directly to the bindgen executable. See https://rust-lang.github.io/rust-bindgen/ for details. |`None`|
158
156
| <aid="rust_bindgen_library-clang_flags"></a>clang_flags | Flags to pass directly to the clang executable. |`None`|
159
-
| <aid="rust_bindgen_library-rustfmt"></a>rustfmt | Enable or disable running rustfmt on the generated file. |`True`|
160
157
| <aid="rust_bindgen_library-kwargs"></a>kwargs | Arguments to forward to the underlying <code>rust_library</code> rule. | none |
0 commit comments