diff options
author | Dylan Baker <dylan@pnwbakers.com> | 2022-11-10 10:56:50 -0800 |
---|---|---|
committer | Dylan Baker <dylan@pnwbakers.com> | 2022-12-05 12:22:08 -0800 |
commit | 33ba2c6f9554aaeb9a8346c7f9c08968ccd54ace (patch) | |
tree | 2b5f0912d15db945d94b05a6c28912a8a0f2e7bb /mesonbuild | |
parent | bb875280b695b8d0435833c192f99233e74a522a (diff) | |
download | meson-33ba2c6f9554aaeb9a8346c7f9c08968ccd54ace.zip meson-33ba2c6f9554aaeb9a8346c7f9c08968ccd54ace.tar.gz meson-33ba2c6f9554aaeb9a8346c7f9c08968ccd54ace.tar.bz2 |
modules/rust: use the shared DEPENDENCIES_KW
Diffstat (limited to 'mesonbuild')
-rw-r--r-- | mesonbuild/modules/rust.py | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/mesonbuild/modules/rust.py b/mesonbuild/modules/rust.py index 4e75d59..87e36c5 100644 --- a/mesonbuild/modules/rust.py +++ b/mesonbuild/modules/rust.py @@ -19,7 +19,7 @@ from . import ExtensionModule, ModuleReturnValue, ModuleInfo from .. import mlog from ..build import BothLibraries, BuildTarget, CustomTargetIndex, Executable, ExtractedObjects, GeneratedList, IncludeDirs, CustomTarget, StructuredSources from ..dependencies import Dependency, ExternalLibrary -from ..interpreter.type_checking import TEST_KWS, OUTPUT_KW, INCLUDE_DIRECTORIES, include_dir_string_new +from ..interpreter.type_checking import DEPENDENCIES_KW, TEST_KWS, OUTPUT_KW, INCLUDE_DIRECTORIES, include_dir_string_new from ..interpreterbase import ContainerTypeInfo, InterpreterException, KwargInfo, typed_kwargs, typed_pos_args, noPosargs from ..mesonlib import File @@ -64,12 +64,8 @@ class RustModule(ExtensionModule): @typed_kwargs( 'rust.test', *TEST_KWS, + DEPENDENCIES_KW, KwargInfo('is_parallel', bool, default=False), - KwargInfo( - 'dependencies', - ContainerTypeInfo(list, (Dependency, ExternalLibrary)), - listify=True, - default=[]), ) def test(self, state: 'ModuleState', args: T.Tuple[str, BuildTarget], kwargs: 'FuncTest') -> ModuleReturnValue: """Generate a rust test target from a given rust target. |