Unnamed repository; edit this file 'description' to name the repository.
1
2
3
4
5
6
7
8
9
10
11
12
13
pub mod rustc_cfg;
pub mod target_data_layout;
pub mod target_triple;

use crate::{ManifestPath, Sysroot};

pub enum QueryConfig<'a> {
    /// Directly invoke `rustc` to query the desired information.
    Rustc(&'a Sysroot),
    /// Attempt to use cargo to query the desired information, honoring cargo configurations.
    /// If this fails, falls back to invoking `rustc` directly.
    Cargo(&'a Sysroot, &'a ManifestPath),
}