pub fn measure_rust(
root: &Path,
exempt: &[String],
exempt_lines: &BTreeMap<String, BTreeSet<u32>>,
base: Option<&str>,
features: &[String],
) -> Result<Vec<Survivor>>Expand description
Run cargo-mutants over the crate at root and return its un-exempted survivors.
With base set, only mutants on the <base>...HEAD changed lines are tested (via
cargo-mutants’ --in-diff); without it, the whole crate. exempt is the file-level
mutation exempt paths and exempt_lines the line-scoped ones (#226), applied with
the determinism guard in evaluate_scoped. The tool provisions cargo-mutants itself
on first use ([ensure_cargo_mutants]) — only a cargo toolchain need be present.