pub trait AffectedBy {
// Required methods
fn is_affected_by(
&self,
changed_files: &[PathBuf],
project_root: &Path,
) -> bool;
fn input_patterns(&self) -> Vec<&str>;
}Expand description
Trait for types that can determine if they are affected by file changes.
Implement this trait on task types to enable affected detection in CI pipelines and incremental builds.
Required Methods§
Sourcefn is_affected_by(&self, changed_files: &[PathBuf], project_root: &Path) -> bool
fn is_affected_by(&self, changed_files: &[PathBuf], project_root: &Path) -> bool
Sourcefn input_patterns(&self) -> Vec<&str>
fn input_patterns(&self) -> Vec<&str>
Returns the input patterns that determine what affects this item.
Used for debugging and reporting which patterns matched.