pub struct CleanConfig {
pub precondition: Option<String>,
pub before: Option<StringOrVec>,
pub clean: Option<StringOrVec>,
pub argv_clean: Option<ArgvRunConfig>,
}Expand description
Alef’s own built-in clean pipeline for one language.
No longer part of the alef.toml schema (0.82.0 removed the [clean.<lang>] /
[workspace.clean.<lang>] / [crates.clean.<lang>] override tables): alef now owns clean end
to end, so this is a plain data carrier returned by
[super::clean_defaults::default_clean_config], never deserialized from a consumer’s config.
Fields§
§precondition: Option<String>Shell command that must exit 0 for clean to run; skip with warning on failure.
before: Option<StringOrVec>Command(s) to run before the main clean commands; aborts on failure.
clean: Option<StringOrVec>Command(s) to clean build artifacts for this language.
Mutually exclusive with argv_clean in practice: a default that must embed a
config-supplied path (a custom package output directory) as a literal argument sets
argv_clean instead of this field.
argv_clean: Option<ArgvRunConfig>Argv-only alternative to clean. See ArgvRunConfig. When both clean and
argv_clean are set, the caller runs argv_clean and ignores clean.
Trait Implementations§
Source§impl Clone for CleanConfig
impl Clone for CleanConfig
Source§fn clone(&self) -> CleanConfig
fn clone(&self) -> CleanConfig
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 CleanConfig
impl Debug for CleanConfig
impl Eq for CleanConfig
Source§impl PartialEq for CleanConfig
impl PartialEq for CleanConfig
impl StructuralPartialEq for CleanConfig
Auto Trait Implementations§
impl Freeze for CleanConfig
impl RefUnwindSafe for CleanConfig
impl Send for CleanConfig
impl Sync for CleanConfig
impl Unpin for CleanConfig
impl UnsafeUnpin for CleanConfig
impl UnwindSafe for CleanConfig
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
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,
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.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> ⓘ
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> ⓘ
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