Do not test multiple-pymethods feature on WASI where it is not supported by the inventory crate.

This commit is contained in:
Adam Reichold 2023-04-13 23:27:28 +02:00
parent 2c1762949e
commit 452c971023
1 changed files with 3 additions and 2 deletions

View File

@ -540,8 +540,9 @@ def _get_rust_target() -> str:
def _get_feature_sets() -> Tuple[Tuple[str, ...], ...]:
"""Returns feature sets to use for clippy job"""
rust_version = _get_rust_version()
if rust_version[:2] >= (1, 62):
# multiple-pymethods feature not supported before 1.62
cargo_target = os.getenv("CARGO_BUILD_TARGET", "")
if rust_version[:2] >= (1, 62) and "wasm32-wasi" not in cargo_target:
# multiple-pymethods feature not supported before 1.62 or on WASI
return (
("--no-default-features",),
(