aboutsummaryrefslogtreecommitdiff
path: root/docs/markdown/snippets
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2022-11-10 11:00:23 -0800
committerDylan Baker <dylan@pnwbakers.com>2022-12-05 12:23:55 -0800
commitd49e6bc0384a4a01754f13edb793cb1d6ce0b836 (patch)
tree4f36246b8918d267c0086239eac4d1b174030d75 /docs/markdown/snippets
parent24b00240650c41b98c51764b6d2f4754bc04dae1 (diff)
downloadmeson-d49e6bc0384a4a01754f13edb793cb1d6ce0b836.zip
meson-d49e6bc0384a4a01754f13edb793cb1d6ce0b836.tar.gz
meson-d49e6bc0384a4a01754f13edb793cb1d6ce0b836.tar.bz2
modules/rust: Add support for dependencies in bindgen
This is needed for cases where we need external C headers, which are passed to clang.
Diffstat (limited to 'docs/markdown/snippets')
-rw-r--r--docs/markdown/snippets/rust_bindgen_deps.md5
1 files changed, 5 insertions, 0 deletions
diff --git a/docs/markdown/snippets/rust_bindgen_deps.md b/docs/markdown/snippets/rust_bindgen_deps.md
new file mode 100644
index 0000000..0e8ebef
--- /dev/null
+++ b/docs/markdown/snippets/rust_bindgen_deps.md
@@ -0,0 +1,5 @@
+## rust.bindgen accepts a dependency argument
+
+The `bindgen` method of the `rust` module now accepts a dependencies argument.
+Any include paths in these dependencies will be passed to the underlying call to
+`clang`, and the call to `bindgen` will correctly depend on any generatd sources.