From d44185026d7cdd83dad8f2da9cb8534c97293ec1 Mon Sep 17 00:00:00 2001 From: Karol Herbst Date: Sun, 17 Sep 2023 12:12:13 +0200 Subject: 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. --- docs/markdown/Rust-module.md | 3 +++ 1 file changed, 3 insertions(+) (limited to 'docs') 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 -- cgit v1.2.3