summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2022-11-10 10:56:50 -0800
committerDylan Baker <dylan@pnwbakers.com>2022-12-05 12:22:08 -0800
commit33ba2c6f9554aaeb9a8346c7f9c08968ccd54ace (patch)
tree2b5f0912d15db945d94b05a6c28912a8a0f2e7bb
parentbb875280b695b8d0435833c192f99233e74a522a (diff)
downloadmeson-33ba2c6f9554aaeb9a8346c7f9c08968ccd54ace.tar.gz
modules/rust: use the shared DEPENDENCIES_KW
-rw-r--r--mesonbuild/modules/rust.py8
1 files changed, 2 insertions, 6 deletions
diff --git a/mesonbuild/modules/rust.py b/mesonbuild/modules/rust.py
index 4e75d59f0..87e36c52d 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.