requires_target_installed in cargo_test_support::cross_compile - Rust
Description: Check if the given target has been installed.

Skip to main content

## requires_target_installed

# Function requires_target_installed

Source

    pub fn requires_target_installed(target: &str) -> bool

Expand description

Check if the given target has been installed.

Generally `testsuite::utils::cross_compile::disabled` should be used to check if cross-compilation is allowed. And `alternate` to get the cross target.

You should only use this as a last resort to skip tests, because it doesn’t report skipped tests as ignored.