pub struct AffectedOptions<'a> {
pub cwd: PathBuf,
pub base: String,
pub language: Language,
pub patterns: Vec<String>,
pub extra_changed_files: Vec<String>,
pub git: &'a dyn GitRunner,
pub fs: &'a dyn Fs,
pub import_extractor: Option<&'a dyn ImportExtractor>,
}Expand description
Inputs and IO seams for resolve_affected.
Fields§
§cwd: PathBufProject root (also the search root for bench discovery).
base: StringGit ref to diff against, e.g. origin/master.
language: Language§patterns: Vec<String>Bench-discovery globs. Empty ⇒ use Language::default_globs.
extra_changed_files: Vec<String>Extra files to treat as changed. Escape hatch for tests and for cases the parser can’t see (config files, codegen outputs, etc.).
git: &'a dyn GitRunner§fs: &'a dyn Fs§import_extractor: Option<&'a dyn ImportExtractor>Per-language import extractor used to derive file edges from a
source string. None ⇒ in-crate regex pass (the default, kept
for backwards-compatibility with every existing call site).
The CLI passes an AST-backed extractor that uses tree-sitter to
extract the same shape language-correctly.
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for AffectedOptions<'a>
impl<'a> !Send for AffectedOptions<'a>
impl<'a> !Sync for AffectedOptions<'a>
impl<'a> !UnwindSafe for AffectedOptions<'a>
impl<'a> Freeze for AffectedOptions<'a>
impl<'a> Unpin for AffectedOptions<'a>
impl<'a> UnsafeUnpin for AffectedOptions<'a>
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