pub struct ToolingPack {
pub name: String,
pub detect: Vec<String>,
pub require_all: bool,
pub phases: PhaseCommands,
}Expand description
A toolchain’s lifecycle commands, as data. Selected for a repo when ANY of its
detect marker files exists at the repo root.
Fields§
§name: StringPack name — the merge / drop-in key (rust, python, …). A drop-in with
an existing name overrides the built-in; a new name adds a toolchain.
detect: Vec<String>Marker files whose presence at the repo root selects this toolchain.
By default ANY match selects it; with require_all every marker must
exist (e.g. PyO3 = Cargo.toml AND pyproject.toml).
require_all: boolRequire ALL detect markers (a compound toolchain like Rust+PyO3), and
SUPERSEDE the component packs it subsumes (so a PyO3 repo uses the pyo3
pack, not rust + python on top of it).
phases: PhaseCommandsThe toolchain’s default command per lifecycle phase ([phases]).
Trait Implementations§
Source§impl Clone for ToolingPack
impl Clone for ToolingPack
Source§fn clone(&self) -> ToolingPack
fn clone(&self) -> ToolingPack
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ToolingPack
impl Debug for ToolingPack
Source§impl<'de> Deserialize<'de> for ToolingPack
impl<'de> Deserialize<'de> for ToolingPack
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>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ToolingPack
Source§impl PartialEq for ToolingPack
impl PartialEq for ToolingPack
Source§impl Serialize for ToolingPack
impl Serialize for ToolingPack
impl StructuralPartialEq for ToolingPack
Auto Trait Implementations§
impl Freeze for ToolingPack
impl RefUnwindSafe for ToolingPack
impl Send for ToolingPack
impl Sync for ToolingPack
impl Unpin for ToolingPack
impl UnsafeUnpin for ToolingPack
impl UnwindSafe for ToolingPack
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
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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
Compare self to
key and return true if they are equal.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
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more