Skip to content

Commit 2f86b33

Browse files
committed
Regenerate documentation
1 parent 7b4341c commit 2f86b33

File tree

4 files changed

+11
-7
lines changed

4 files changed

+11
-7
lines changed

bindgen/private/bindgen.bzl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -385,15 +385,15 @@ rust_bindgen = rule(
385385
allow_single_file = True,
386386
mandatory = True,
387387
),
388-
"wrap_static_fns": attr.bool(
389-
doc = "Whether to create a separate .c file for static fns. Requires nightly toolchain, and a header that actually needs this feature (otherwise bindgen won't generate the file and Bazel complains).",
390-
default = False,
391-
),
392388
"merge_cc_lib_objects_into_rlib": attr.bool(
393389
doc = ("When True, objects from `cc_lib` will be copied into the `rlib` archive produced by " +
394390
"the rust_library that depends on this `rust_bindgen` rule (using `BuildInfo` provider)"),
395391
default = True,
396392
),
393+
"wrap_static_fns": attr.bool(
394+
doc = "Whether to create a separate .c file for static fns. Requires nightly toolchain, and a header that actually needs this feature (otherwise bindgen won't generate the file and Bazel complains).",
395+
default = False,
396+
),
397397
"_cc_toolchain": attr.label(
398398
default = Label("@bazel_tools//tools/cpp:current_cc_toolchain"),
399399
),

docs/src/flatten.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,8 @@ is available under the key `dsym_folder` in `OutputGroupInfo`.
328328
## rust_bindgen
329329

330330
<pre>
331-
rust_bindgen(<a href="#rust_bindgen-name">name</a>, <a href="#rust_bindgen-bindgen_flags">bindgen_flags</a>, <a href="#rust_bindgen-cc_lib">cc_lib</a>, <a href="#rust_bindgen-clang_flags">clang_flags</a>, <a href="#rust_bindgen-header">header</a>, <a href="#rust_bindgen-wrap_static_fns">wrap_static_fns</a>)
331+
rust_bindgen(<a href="#rust_bindgen-name">name</a>, <a href="#rust_bindgen-bindgen_flags">bindgen_flags</a>, <a href="#rust_bindgen-cc_lib">cc_lib</a>, <a href="#rust_bindgen-clang_flags">clang_flags</a>, <a href="#rust_bindgen-header">header</a>, <a href="#rust_bindgen-merge_cc_lib_objects_into_rlib">merge_cc_lib_objects_into_rlib</a>,
332+
<a href="#rust_bindgen-wrap_static_fns">wrap_static_fns</a>)
332333
</pre>
333334

334335
Generates a rust source file from a cc_library and a header.
@@ -343,6 +344,7 @@ Generates a rust source file from a cc_library and a header.
343344
| <a id="rust_bindgen-cc_lib"></a>cc_lib | The cc_library that contains the `.h` file. This is used to find the transitive includes. | <a href="https://bazel.build/concepts/labels">Label</a> | required | |
344345
| <a id="rust_bindgen-clang_flags"></a>clang_flags | Flags to pass directly to the clang executable. | List of strings | optional | `[]` |
345346
| <a id="rust_bindgen-header"></a>header | The `.h` file to generate bindings for. | <a href="https://bazel.build/concepts/labels">Label</a> | required | |
347+
| <a id="rust_bindgen-merge_cc_lib_objects_into_rlib"></a>merge_cc_lib_objects_into_rlib | When True, objects from `cc_lib` will be copied into the `rlib` archive produced by the rust_library that depends on this `rust_bindgen` rule (using `BuildInfo` provider) | Boolean | optional | `True` |
346348
| <a id="rust_bindgen-wrap_static_fns"></a>wrap_static_fns | Whether to create a separate .c file for static fns. Requires nightly toolchain, and a header that actually needs this feature (otherwise bindgen won't generate the file and Bazel complains). | Boolean | optional | `False` |
347349

348350

docs/src/rust_bindgen.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,8 @@ toolchains following the instructions for [rust_bindgen_toolchain](#rust_bindgen
5353
## rust_bindgen
5454

5555
<pre>
56-
rust_bindgen(<a href="#rust_bindgen-name">name</a>, <a href="#rust_bindgen-bindgen_flags">bindgen_flags</a>, <a href="#rust_bindgen-cc_lib">cc_lib</a>, <a href="#rust_bindgen-clang_flags">clang_flags</a>, <a href="#rust_bindgen-header">header</a>, <a href="#rust_bindgen-wrap_static_fns">wrap_static_fns</a>)
56+
rust_bindgen(<a href="#rust_bindgen-name">name</a>, <a href="#rust_bindgen-bindgen_flags">bindgen_flags</a>, <a href="#rust_bindgen-cc_lib">cc_lib</a>, <a href="#rust_bindgen-clang_flags">clang_flags</a>, <a href="#rust_bindgen-header">header</a>, <a href="#rust_bindgen-merge_cc_lib_objects_into_rlib">merge_cc_lib_objects_into_rlib</a>,
57+
<a href="#rust_bindgen-wrap_static_fns">wrap_static_fns</a>)
5758
</pre>
5859

5960
Generates a rust source file from a cc_library and a header.
@@ -68,6 +69,7 @@ Generates a rust source file from a cc_library and a header.
6869
| <a id="rust_bindgen-cc_lib"></a>cc_lib | The cc_library that contains the `.h` file. This is used to find the transitive includes. | <a href="https://bazel.build/concepts/labels">Label</a> | required | |
6970
| <a id="rust_bindgen-clang_flags"></a>clang_flags | Flags to pass directly to the clang executable. | List of strings | optional | `[]` |
7071
| <a id="rust_bindgen-header"></a>header | The `.h` file to generate bindings for. | <a href="https://bazel.build/concepts/labels">Label</a> | required | |
72+
| <a id="rust_bindgen-merge_cc_lib_objects_into_rlib"></a>merge_cc_lib_objects_into_rlib | When True, objects from `cc_lib` will be copied into the `rlib` archive produced by the rust_library that depends on this `rust_bindgen` rule (using `BuildInfo` provider) | Boolean | optional | `True` |
7173
| <a id="rust_bindgen-wrap_static_fns"></a>wrap_static_fns | Whether to create a separate .c file for static fns. Requires nightly toolchain, and a header that actually needs this feature (otherwise bindgen won't generate the file and Bazel complains). | Boolean | optional | `False` |
7274

7375

test/bindgen/bindgen_test.bzl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
load("@rules_cc//cc:defs.bzl", "cc_library")
44
load("@rules_rust//bindgen:defs.bzl", "rust_bindgen_library")
5-
load("@rules_rust//rust:defs.bzl", "rust_binary", "rust_library")
5+
load("@rules_rust//rust:defs.bzl", "rust_binary")
66
load("@rules_testing//lib:analysis_test.bzl", "analysis_test", "test_suite")
77

88
def _test_cc_linkopt_impl(env, target):

0 commit comments

Comments
 (0)