summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorKarol Herbst <git@karolherbst.de>2023-09-17 12:12:13 +0200
committerDylan Baker <dylan@pnwbakers.com>2024-02-24 09:11:00 -0800
commitd44185026d7cdd83dad8f2da9cb8534c97293ec1 (patch)
tree99de50211f32273b9c855112a2dcd7c643a5b407 /docs
parent11f2e07071d062f31a69de531faa0a5d68b1f5bc (diff)
downloadmeson-d44185026d7cdd83dad8f2da9cb8534c97293ec1.tar.gz
meson/rust: wrap `bindgen`s `wrap-static-fns` functionality
This way the `rust.bindgen` can generate a second output being a C file, which contains wrapper functions for static inline ones. This output file can then be compiled via C targets.
Diffstat (limited to 'docs')
-rw-r--r--docs/markdown/Rust-module.md3
1 files changed, 3 insertions, 0 deletions
diff --git a/docs/markdown/Rust-module.md b/docs/markdown/Rust-module.md
index 11966ca8c..ee095e9d6 100644
--- a/docs/markdown/Rust-module.md
+++ b/docs/markdown/Rust-module.md
@@ -57,6 +57,9 @@ It takes the following keyword arguments
- `input`: a list of Files, Strings, or CustomTargets. The first element is
the header bindgen will parse, additional elements are dependencies.
- `output`: the name of the output rust file
+- `output_inline_wrapper`: the name of the optional output c file containing
+ wrappers for static inline function. This requires `bindgen-0.65` or
+ newer (*since 1.3.0*).
- `include_directories`: A list of `include_directories` or `string` objects,
these are passed to clang as `-I` arguments *(string since 1.0.0)*
- `c_args`: a list of string arguments to pass to clang untouched