pub enum ToolSource {
Cli,
Env,
UserConfig,
WorkspaceConfig,
PackageConfig,
ExplicitConfig,
ManifestConditional,
Manifest,
Default,
}Expand description
Where a tool selection ultimately came from. Recorded alongside
the resolved tool so cabin metadata can show the precedence
without re-deriving it.
Variants§
Cli
Set by a CLI flag (--cc, --cxx, --ar).
Env
Set by an environment variable (CC, CXX, AR).
UserConfig
Set by [toolchain] in the user-level config file.
WorkspaceConfig
Set by [toolchain] in the workspace-level config file.
PackageConfig
Set by [toolchain] in the package-local config file
(non-workspace single-package projects).
ExplicitConfig
Set by [toolchain] in a config file pointed at by the
CABIN_CONFIG environment variable.
ManifestConditional
Set by a [target.'cfg(...)'.toolchain] table that matches
the host platform.
Manifest
Set by the workspace-root [toolchain] table.
Default
Auto-detected from PATH using Cabin’s documented fallback
list (c++ / clang++ / g++ for the C++ compiler, cc /
clang / gcc for the C compiler, ar for the archiver).
Trait Implementations§
Source§impl Clone for ToolSource
impl Clone for ToolSource
Source§fn clone(&self) -> ToolSource
fn clone(&self) -> ToolSource
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ToolSource
impl Debug for ToolSource
Source§impl<'de> Deserialize<'de> for ToolSource
impl<'de> Deserialize<'de> for ToolSource
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for ToolSource
impl PartialEq for ToolSource
Source§fn eq(&self, other: &ToolSource) -> bool
fn eq(&self, other: &ToolSource) -> bool
self and other values to be equal, and is used by ==.Source§impl Serialize for ToolSource
impl Serialize for ToolSource
impl Copy for ToolSource
impl Eq for ToolSource
impl StructuralPartialEq for ToolSource
Auto Trait Implementations§
impl Freeze for ToolSource
impl RefUnwindSafe for ToolSource
impl Send for ToolSource
impl Sync for ToolSource
impl Unpin for ToolSource
impl UnsafeUnpin for ToolSource
impl UnwindSafe for ToolSource
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.