diff options
author | Xavier Claessens <xavier.claessens@collabora.com> | 2023-01-25 11:00:43 -0500 |
---|---|---|
committer | Xavier Claessens <xclaesse@gmail.com> | 2023-03-04 14:19:27 -0500 |
commit | 0f67913dee7d4173b1f7c5e95268d7bc4d4d858d (patch) | |
tree | 516cf931cba047f1f352b0b38ed8e0626b8a9fb8 /mesonbuild/modules | |
parent | 2d26c272c3225f99c945d2c510c61910c34a9377 (diff) | |
download | meson-0f67913dee7d4173b1f7c5e95268d7bc4d4d858d.zip meson-0f67913dee7d4173b1f7c5e95268d7bc4d4d858d.tar.gz meson-0f67913dee7d4173b1f7c5e95268d7bc4d4d858d.tar.bz2 |
typed_kwargs: Extend since_values and deprecated_values for types
Diffstat (limited to 'mesonbuild/modules')
-rw-r--r-- | mesonbuild/modules/rust.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mesonbuild/modules/rust.py b/mesonbuild/modules/rust.py index 126b894..6c3200d 100644 --- a/mesonbuild/modules/rust.py +++ b/mesonbuild/modules/rust.py @@ -20,7 +20,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 DEPENDENCIES_KW, TEST_KWS, OUTPUT_KW, INCLUDE_DIRECTORIES, include_dir_string_new +from ..interpreter.type_checking import DEPENDENCIES_KW, TEST_KWS, OUTPUT_KW, INCLUDE_DIRECTORIES from ..interpreterbase import ContainerTypeInfo, InterpreterException, KwargInfo, typed_kwargs, typed_pos_args, noPosargs from ..mesonlib import File @@ -172,7 +172,7 @@ class RustModule(ExtensionModule): listify=True, required=True, ), - INCLUDE_DIRECTORIES.evolve(feature_validator=include_dir_string_new), + INCLUDE_DIRECTORIES.evolve(since_values={ContainerTypeInfo(list, str): '1.0.0'}), OUTPUT_KW, DEPENDENCIES_KW.evolve(since='1.0.0'), ) |