Skip to main content

react

Function react 

Source
pub fn react<I: IgnoreRules>(
    batch: &ChangeBatch,
    reference: &Reference,
    rules: Option<&I>,
) -> Reaction
Expand description

What batch starts, given what the last build and the last open of the workspace read.

Only the paths left after the drop count: those under the output directory, the state directory or .git, and those rules report ignored, are dropped. A batch with none left is Reaction::Ignore. Otherwise it is Reaction::Build when the last cycle left no graph, when a path kept is an input of the last build, or when it is one of the files that decide the workspace’s settings; any other batch is Reaction::Check, for the build files may now declare a different graph.