jevsnes.git / toolchains / local_test_execution.bzl

rust_test's implicit toolchains//:remote_test_execution dep has no prelude-provided no-op stub (unlike toolchains//:test's noop_test_toolchain) — this repo has no RE infra, so this is the smallest thing satisfying RemoteTestExecutionToolchainInfo for a purely local run.

5load("@prelude//tests:remote_test_execution_toolchain.bzl", "RemoteTestExecutionToolchainInfo")
7def _impl(_ctx: AnalysisContext) -> list[Provider]:
8    return [
9        DefaultInfo(),
10        RemoteTestExecutionToolchainInfo(
11            default_profile = None,
12            profiles = {},
13            default_run_as_bundle = False,
14        ),
15    ]
16
17local_remote_test_execution_toolchain = rule(
18    impl = _impl,
19    attrs = {},
20    is_toolchain_rule = True,
21)