project_model::toolchain_info::target_tuple

Function get

Source
pub fn get(
    config: QueryConfig<'_>,
    target: Option<&str>,
    extra_env: &FxHashMap<String, String>,
) -> Result<Vec<String>>
Expand description

For cargo, runs cargo -Zunstable-options config get build.target to get the configured project target(s). For rustc, runs rustc --print -vV to get the host target.