diff options
author | Dylan Baker <dylan@pnwbakers.com> | 2022-11-10 11:00:23 -0800 |
---|---|---|
committer | Dylan Baker <dylan@pnwbakers.com> | 2022-12-05 12:23:55 -0800 |
commit | d49e6bc0384a4a01754f13edb793cb1d6ce0b836 (patch) | |
tree | 4f36246b8918d267c0086239eac4d1b174030d75 /docs/markdown/Rust-module.md | |
parent | 24b00240650c41b98c51764b6d2f4754bc04dae1 (diff) | |
download | meson-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/Rust-module.md')
-rw-r--r-- | docs/markdown/Rust-module.md | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/docs/markdown/Rust-module.md b/docs/markdown/Rust-module.md index e2c455e..65eec64 100644 --- a/docs/markdown/Rust-module.md +++ b/docs/markdown/Rust-module.md @@ -35,7 +35,7 @@ that automatically. Additional, test only dependencies may be passed via the dependencies argument. -### bindgen(*, input: string | BuildTarget | [](string | BuildTarget), output: string, include_directories: [](include_directories | string), c_args: []string, args: []string) +### bindgen(*, input: string | BuildTarget | [](string | BuildTarget), output: string, include_directories: [](include_directories | string), c_args: []string, args: []string, dependencies: []Dependency) This function wraps bindgen to simplify creating rust bindings around C libraries. This has two advantages over hand-rolling ones own with a @@ -54,6 +54,7 @@ It takes the following keyword arguments 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 - 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*) ```meson rust = import('unstable-rust') |