override fun getRunnerSpecificRequirements()

in plugin-rust-server/src/main/kotlin/jetbrains/buildServer/rust/CargoRunnerRunType.kt [70:77]


    override fun getRunnerSpecificRequirements(parameters: Map<String, String>): List<Requirement> {
        val toolchainVersion = parameters[CargoConstants.PARAM_TOOLCHAIN]
        return if (toolchainVersion.isNullOrBlank()) {
            listOf(Requirement(CargoConstants.CARGO_CONFIG_PATH, null, RequirementType.EXISTS))
        } else {
            listOf(Requirement(CargoConstants.RUSTUP_CONFIG_PATH, null, RequirementType.EXISTS))
        }
    }