meson/mesonbuild
Dylan Baker 3d80a88bd3 modules: Add an unstable-rust module
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.
2021-01-05 15:10:50 -08:00
..
ast Use a single coredata dictionary for options 2021-01-04 12:20:58 -08:00
backend mtest: Add support for rust unit tests 2021-01-05 10:23:41 -08:00
cmake Merge pull request #8080 from dcbaker/submit/option-key-type 2021-01-04 23:42:50 +00:00
compilers Use a single coredata dictionary for options 2021-01-04 12:20:58 -08:00
dependencies Use a single coredata dictionary for options 2021-01-04 12:20:58 -08:00
modules modules: Add an unstable-rust module 2021-01-05 15:10:50 -08:00
scripts Use a single coredata dictionary for options 2021-01-04 12:20:58 -08:00
templates typing: Fix templates 2020-09-08 20:15:58 +02:00
wrap Handle uppercase dependency names in wraps. 2020-12-30 20:54:41 +00:00
__init__.py Renamed meson package to mesonbuild so that we can have a script named meson in the same toplevel dir. 2016-01-16 17:35:29 +02:00
arglist.py typing: fix code review 2020-09-08 20:15:58 +02:00
build.py fix LGTM warnings 2021-01-04 12:20:59 -08:00
coredata.py fix LGTM warnings 2021-01-04 12:20:59 -08:00
depfile.py stabilize sets that are converted to lists 2020-11-15 14:21:31 +01:00
envconfig.py Merge pull request #8011 from dcbaker/submit/post-python36-cleanups 2020-11-22 04:28:19 +02:00
environment.py Use a single coredata dictionary for options 2021-01-04 12:20:58 -08:00
interpreter.py interpreter: split code that creates a Test instance 2021-01-05 10:23:57 -08:00
interpreterbase.py stabilize iteration order for dictionaries 2020-11-15 14:21:31 +01:00
linkers.py use OptionKey for compiler_options 2021-01-04 12:20:39 -08:00
mcompile.py Use a single coredata dictionary for options 2021-01-04 12:20:58 -08:00
mconf.py Use a single coredata dictionary for options 2021-01-04 12:20:58 -08:00
mdist.py mdist: Print file path at the end of run() instead of in create_hash(). 2020-12-22 21:38:28 -05:00
mesondata.py Merge pull request #8011 from dcbaker/submit/post-python36-cleanups 2020-11-22 04:28:19 +02:00
mesonlib.py fix LGTM warnings 2021-01-04 12:20:59 -08:00
mesonmain.py Bump minimum supported Python version to 3.6. Closes #6297. 2020-10-30 11:18:11 +02:00
minit.py use real pathlib module 2020-11-20 15:08:40 -08:00
minstall.py Fix missed imports in #7902 2020-12-28 15:25:22 +00:00
mintro.py mintro: fix mypy warning 2021-01-04 12:20:59 -08:00
mlog.py mlog: make mlog helper take once keyword argument 2020-12-16 21:15:09 +00:00
mparser.py typing: fix code review 2020-09-08 20:15:58 +02:00
msetup.py Use a single coredata dictionary for options 2021-01-04 12:20:58 -08:00
msubprojects.py msubprojects: Ignore worktrees when checking out 2020-12-07 09:02:44 -05:00
mtest.py mtest: Add support for rust unit tests 2021-01-05 10:23:41 -08:00
munstable_coredata.py Use a single coredata dictionary for options 2021-01-04 12:20:58 -08:00
optinterpreter.py Use a single coredata dictionary for options 2021-01-04 12:20:58 -08:00
rewriter.py Use a single coredata dictionary for options 2021-01-04 12:20:58 -08:00