interpreter: use typed_kwargs for build_target.d_module_versions

pull/12383/head
Dylan Baker 1 year ago
parent 9b1efa37fd
commit 2048d1333e
  1. 1
      mesonbuild/interpreter/kwargs.py
  2. 1
      mesonbuild/interpreter/type_checking.py

@ -335,6 +335,7 @@ class _BuildTarget(_BaseBuildTarget):
d_debug: T.List[T.Union[str, int]]
d_import_dirs: T.List[T.Union[str, build.IncludeDirs]]
d_module_versions: T.List[T.Union[str, int]]
rust_dependency_map: T.Dict[str, str]
sources: SourcesVarargsType
c_args: T.List[str]

@ -562,6 +562,7 @@ _BUILD_TARGET_KWS: T.List[KwargInfo] = [
INCLUDE_DIRECTORIES.evolve(name='d_import_dirs'),
RUST_CRATE_TYPE_KW,
KwargInfo('d_debug', ContainerTypeInfo(list, (str, int)), default=[], listify=True),
D_MODULE_VERSIONS_KW,
KwargInfo(
'rust_dependency_map',
ContainerTypeInfo(dict, str),

Loading…
Cancel
Save