Skip to main content

measure_rust

Function measure_rust 

Source
pub fn measure_rust(
    root: &Path,
    exempt: &[String],
    exempt_lines: &BTreeMap<String, BTreeSet<u32>>,
    base: Option<&str>,
    features: &[String],
) -> Result<Measurement>
Expand description

Run cargo-mutants over the crate at root and return the Measurement, or Measurement::EngineNotRun for a base diff that changes no lines — or no Rust source — under the crate. The tool provisions cargo-mutants itself ([ensure_cargo_mutants]).