Function dirty_files_outside_pkg_root

Source
fn dirty_files_outside_pkg_root(
    pkg: &Package,
    repo: &Repository,
    src_files: &[PathEntry],
) -> CargoResult<HashSet<PathBuf>>
Expand description

Checks whether “included” source files outside package root have been modified.

This currently looks at

  • package.readme and package.license-file pointing to paths outside package root
  • symlinks targets reside outside package root

This is required because those paths may link to a file outside the current package root, but still under the git workdir, affecting the final packaged .crate file.