From 05d49c6990aedb850266f22b40442af7a54e13fc Mon Sep 17 00:00:00 2001 From: Dylan Baker Date: Mon, 16 Oct 2023 10:07:32 -0700 Subject: modules/rust: Allow explicitly setting the language to bind This may be of particular use when a header is .h but should be treated as a C++ header instead of a C header. --- docs/markdown/Rust-module.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'docs/markdown/Rust-module.md') diff --git a/docs/markdown/Rust-module.md b/docs/markdown/Rust-module.md index 8ef8c433e..0ed5410c7 100644 --- a/docs/markdown/Rust-module.md +++ b/docs/markdown/Rust-module.md @@ -3,7 +3,7 @@ short-description: Rust language integration module authors: - name: Dylan Baker email: dylan@pnwbakers.com - years: [2020, 2021, 2022] + years: [2020, 2021, 2022, 2024] ... # Rust module @@ -62,6 +62,7 @@ It takes the following keyword arguments - `c_args`: a list of string arguments to pass to clang untouched - `args`: a list of string arguments to pass to `bindgen` untouched. - `dependencies`: a list of `Dependency` objects to pass to the underlying clang call (*since 1.0.0*) +- `language`: A literal string value of `c` or `cpp`. When set this will force bindgen to treat a source as the given language. Defaults to checking based on the input file extension. *(since 1.4.0)* ```meson rust = import('unstable-rust') -- cgit v1.2.3