summaryrefslogtreecommitdiff
path: root/docs/markdown/Rust-module.md
AgeCommit message (Collapse)Author
2022-12-11DOCS: Rust-module: Remove note about unstable APIEwout ter Hoeven
Remove the note about the unstable API of the Rust module, since it's no longer unstable as of Meson 1.0.0.
2022-12-05modules/rust: Add support for dependencies in bindgenDylan Baker
This is needed for cases where we need external C headers, which are passed to clang.
2022-12-05modules/rust: Add support for string include_directoriesDylan Baker
Which we support for basically every other case, but not this one.
2022-11-19modules/rust: stabilizeDylan Baker
Mesa is using the rust module in production, so we should stabilize it.
2022-01-10docs: fix rust module bindgen argumentsDylan Baker
Fixes: 9795
2021-10-10Fix typos discovered by codespellChristian Clauss
2021-10-03docs: Fix broken linksDaniel Mensinger
2021-05-18doc: Fix array syntax [skip ci]Tim McNamara
Adds a square bracket to create a valid array.
2021-02-06rust: Add a module wrapper for bindgenDylan Baker
This has a couple of advantages over rolling it by hand: 1. it correctly handles include_directories objects, which is always handy 2. it correctly generates a depfile for you, which makes it more reliable 3. it requires less typing
2021-01-31Capitalize "Meson" consistently as it is a proper name. [skip ci]Jussi Pakkanen
2021-01-30Rewrap long text lines in docs. [skip ci]Jussi Pakkanen
2021-01-05modules: Add an unstable-rust moduleDylan Baker
Like other language specific modules this module is module for holding rust specific helpers. This commit adds a test() function, which simplifies using rust's internal unittest mechanism. Rust tests are generally placed in the same code files as they are testing, in contrast to languages like C/C++ and python which generally place the tests in separate translation units. For meson this is somewhat problematic from a repetition point of view, as the only changes are generally adding --test, and possibly some dependencies. The rustmod.test() method provides a mechanism to remove the repatition: it takes a rust target, copies it, and then addes the `--test` option, then creates a Test() target with the `rust` protocol. You can pass additional dependencies via the `dependencies` keyword. This all makes for a nice, DRY, test definition.