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
@@ -381,6 +384,7 @@ For additional information, see the [Bazel toolchains documentation](https://doc
381
384
doc="The label of a `clang` executable.",
382
385
executable=True,
383
386
cfg="exec",
387
+
allow_files=True,
384
388
),
385
389
"default_rustfmt": attr.bool(
386
390
doc="If set, `rust_bindgen` targets will always format generated sources with `rustfmt`.",
@@ -391,12 +395,14 @@ For additional information, see the [Bazel toolchains documentation](https://doc
391
395
doc="A cc_library that provides bindgen's runtime dependency on libclang.",
392
396
cfg="exec",
393
397
providers= [CcInfo],
398
+
allow_files=True,
394
399
),
395
400
"libstdcxx": attr.label(
396
401
doc="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.",
Generates a rust source file for `header`, and builds a rust_library.
@@ -1784,6 +1784,7 @@ Arguments are the same as `rust_bindgen`, and `kwargs` are passed directly to ru
1784
1784
| <aid="rust_bindgen_library-header"></a>header | The label of the .h file to generate bindings for. | none |
1785
1785
| <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 |
1786
1786
| <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`|
1787
+
| <aid="rust_bindgen_library-bindgen_features"></a>bindgen_features | The <code>features</code> attribute for the <code>rust_bindgen</code> target. |`None`|
1787
1788
| <aid="rust_bindgen_library-clang_flags"></a>clang_flags | Flags to pass directly to the clang executable. |`None`|
1788
1789
| <aid="rust_bindgen_library-kwargs"></a>kwargs | Arguments to forward to the underlying <code>rust_library</code> rule. | none |
Generates a rust source file for `header`, and builds a rust_library.
@@ -159,6 +159,7 @@ Arguments are the same as `rust_bindgen`, and `kwargs` are passed directly to ru
159
159
| <aid="rust_bindgen_library-header"></a>header | The label of the .h file to generate bindings for. | none |
160
160
| <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 |
161
161
| <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`|
162
+
| <aid="rust_bindgen_library-bindgen_features"></a>bindgen_features | The <code>features</code> attribute for the <code>rust_bindgen</code> target. |`None`|
162
163
| <aid="rust_bindgen_library-clang_flags"></a>clang_flags | Flags to pass directly to the clang executable. |`None`|
163
164
| <aid="rust_bindgen_library-kwargs"></a>kwargs | Arguments to forward to the underlying <code>rust_library</code> rule. | none |
0 commit comments