We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
rustc_cfg::RustcCfgConfig
1 parent fad3823 commit 912b22fCopy full SHA for 912b22f
crates/project-model/src/rustc_cfg.rs
@@ -7,6 +7,14 @@ use rustc_hash::FxHashMap;
7
8
use crate::{cfg_flag::CfgFlag, utf8_stdout, ManifestPath, Sysroot};
9
10
+/// Determines how `rustc --print cfg` is discovered and invoked.
11
+///
12
+/// There options are supported:
13
+/// - [`RustcCfgConfig::Cargo`], which relies on `cargo rustc --print cfg`
14
+/// and `RUSTC_BOOTSTRAP`.
15
+/// - [`RustcCfgConfig::Explicit`], which uses an explicit path to the `rustc`
16
+/// binary in the sysroot.
17
+/// - [`RustcCfgConfig::Discover`], which uses [`toolchain::rustc`].
18
pub(crate) enum RustcCfgConfig<'a> {
19
Cargo(&'a ManifestPath),
20
Explicit(&'a Sysroot),
0 commit comments