From d49e6bc0384a4a01754f13edb793cb1d6ce0b836 Mon Sep 17 00:00:00 2001 From: Dylan Baker Date: Thu, 10 Nov 2022 11:00:23 -0800 Subject: modules/rust: Add support for dependencies in bindgen This is needed for cases where we need external C headers, which are passed to clang. --- docs/markdown/snippets/rust_bindgen_deps.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 docs/markdown/snippets/rust_bindgen_deps.md (limited to 'docs/markdown/snippets') 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. -- cgit v1.1